Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract translatables to registration #105

Open
xipasduarte opened this issue Jul 29, 2024 · 1 comment
Open

Extract translatables to registration #105

xipasduarte opened this issue Jul 29, 2024 · 1 comment

Comments

@xipasduarte
Copy link
Member

When registering a post type of taxonomy, we could add something that would mark it for translation.

'ubb_translate' => true

This could make it easier to control what is translatable.

@goncaloasimoes
Copy link
Contributor

goncaloasimoes commented Aug 12, 2024

I'm thinking this should be overridden by the values returned by the filter ubb_options.

If the filter return array has the key post_types and the value is an array (empty or otherwise), the post types/taxonomies set as translatable directly in their register data should be ignored.

The problem with this is setting the WordPress types/taxonomies as translatable (post, page, nav_menu, nav_menu_item, attachment, etc).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants