From 1f0764df10b9b2c3c93dad8f4b7502bfe0e3b0c3 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Thu, 26 Oct 2023 18:08:12 +0200 Subject: [PATCH] hiding defautl tags taxonomy --- includes/taxonomy.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/taxonomy.php b/includes/taxonomy.php index b723dc4..dde2871 100644 --- a/includes/taxonomy.php +++ b/includes/taxonomy.php @@ -4,11 +4,11 @@ /* ----------------------- HIDE DEFAULT TAXONOMIES -------------------------*/ -function wpsnipp_remove_default_taxonomies() +function homegrade_remove_default_taxonomies() { global $pagenow; - // register_taxonomy('post_tag', array()); + register_taxonomy('post_tag', array()); register_taxonomy('category', array()); // $tax = array('post_tag', 'category'); @@ -18,7 +18,7 @@ function wpsnipp_remove_default_taxonomies() wp_die('Invalid taxonomy'); } } -add_action('init', 'wpsnipp_remove_default_taxonomies'); +add_action('init', 'homegrade_remove_default_taxonomies');