radiate-framework / framework

A WordPress plugin and theme framework
https://radiate-framework.github.io/
MIT License
4 stars 0 forks source link

Post type and taxonomy labels not translatable #133

Closed BenRutlandWeb closed 3 years ago

BenRutlandWeb commented 3 years ago

Describe the bug The post type and taxonomy $singular and $plural properties aren't translatable (using gettext funcitons).

To Reproduce Steps to reproduce the behavior:

  1. Create a post type
  2. Give it a label
  3. PHP doesn't allow for the label to call a function such as __()

Expected behavior A way to call gettext functions on the labels.

Additional context The ability to override class methods such as plural() would allow for methods to be called on the labels.