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
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions php/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@
if ( ! (bool) $options['loadCustomizerCSSFrontend'] ) {
remove_action( 'wp_head', 'wp_custom_css_cb', 101 );
}
$post_type = 'wp_block';

Check failure on line 66 in php/Admin.php

View workflow job for this annotation

GitHub Actions / WPCS

Tabs must be used to indent lines; spaces are not allowed

Check failure on line 66 in php/Admin.php

View workflow job for this annotation

GitHub Actions / WPCS

Whitespace found at end of line
// Unregister the 'category' taxonomy.
unregister_taxonomy_for_object_type('category', $post_type);

Check failure on line 68 in php/Admin.php

View workflow job for this annotation

GitHub Actions / WPCS

Expected 1 spaces after opening parenthesis; 0 found

Check failure on line 68 in php/Admin.php

View workflow job for this annotation

GitHub Actions / WPCS

Expected 1 spaces before closing parenthesis; 0 found
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.


Check failure on line 69 in php/Admin.php

View workflow job for this annotation

GitHub Actions / WPCS

Whitespace found at end of line
// Unregister the 'post_tag' taxonomy.
unregister_taxonomy_for_object_type('post_tag', $post_type);

Check failure on line 71 in php/Admin.php

View workflow job for this annotation

GitHub Actions / WPCS

Expected 1 spaces after opening parenthesis; 0 found

Check failure on line 71 in php/Admin.php

View workflow job for this annotation

GitHub Actions / WPCS

Expected 1 spaces before closing parenthesis; 0 found
}


Expand Down
Loading