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

Remove taxonomy interface from post type sidebar #24

Closed
wants to merge 1 commit into from

Conversation

s92mike
Copy link
Collaborator

@s92mike s92mike commented Feb 12, 2024

Resolve #1

  • Trying to track the integration of the pattern category sidebar. It might be JS

- trying to track the integration of the pattern category sidebar. It might be JS
@s92mike s92mike requested a review from ronalfy February 12, 2024 15:20
@s92mike s92mike self-assigned this Feb 12, 2024
@ronalfy
Copy link
Contributor

ronalfy commented Feb 12, 2024

@s92mike this is on the v2 milestone. Please pause any v2 milestone tasks until the MVP milestone is complete.

$post_type = 'wp_block';

// Unregister the 'category' taxonomy.
unregister_taxonomy_for_object_type('category', $post_type);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note. We're not trying to "unregister" the taxonomy, just prevent it from showing in the block editor sidebar. We may have to modify the post type args for show_in_rest to be false, but make sure this doesn't break any existing functionality.

@ronalfy ronalfy closed this Mar 28, 2024
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

Successfully merging this pull request may close these issues.

Remove taxonomy interface from post type sidebar
3 participants