hiding defautl tags taxonomy
This commit is contained in:
parent
785229d3e7
commit
1f0764df10
|
|
@ -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');
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user