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

taxonomy registration #1

Open
carstingaxion opened this issue Jun 13, 2024 · 0 comments
Open

taxonomy registration #1

carstingaxion opened this issue Jun 13, 2024 · 0 comments

Comments

@carstingaxion
Copy link
Owner

Since Gutenberg 13.3 (and WP 6.1), a post term block variation is generated for each registered custom taxonomy. For example, if you register a “Product category” taxonomy, you should able to add a “Product categories” block that lists all the product category terms assigned to the current post.

But, currently, for the post term block variation automatic generation to work you need to register the custom taxonomies earlier in the process (a priority lower than 10).

Example: add_action( 'init', 'wpdocs_register_taxonomies', 9 );

https://developer.wordpress.org/reference/functions/register_taxonomy/#comment-6850

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

1 participant