Skip to content

Commit de0ad9e

Browse files
Test out removing taximony
- trying to track the integration of the pattern category sidebar. It might be JS
1 parent a616d9c commit de0ad9e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

php/Admin.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ public function run() {
6262
if ( ! (bool) $options['loadCustomizerCSSFrontend'] ) {
6363
remove_action( 'wp_head', 'wp_custom_css_cb', 101 );
6464
}
65+
$post_type = 'wp_block';
66+
67+
// Unregister the 'category' taxonomy.
68+
unregister_taxonomy_for_object_type('category', $post_type);
69+
70+
// Unregister the 'post_tag' taxonomy.
71+
unregister_taxonomy_for_object_type('post_tag', $post_type);
6572
}
6673

6774

0 commit comments

Comments
 (0)