From de0ad9e879427e6c73cd9385cd5ebbab952ea728 Mon Sep 17 00:00:00 2001 From: Mike Francis Miguel Abella DLX Date: Mon, 12 Feb 2024 23:18:30 +0800 Subject: [PATCH] Test out removing taximony - trying to track the integration of the pattern category sidebar. It might be JS --- php/Admin.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/php/Admin.php b/php/Admin.php index 907171c..d0a399d 100644 --- a/php/Admin.php +++ b/php/Admin.php @@ -62,6 +62,13 @@ public function run() { if ( ! (bool) $options['loadCustomizerCSSFrontend'] ) { remove_action( 'wp_head', 'wp_custom_css_cb', 101 ); } + $post_type = 'wp_block'; + + // Unregister the 'category' taxonomy. + unregister_taxonomy_for_object_type('category', $post_type); + + // Unregister the 'post_tag' taxonomy. + unregister_taxonomy_for_object_type('post_tag', $post_type); }