How to unhook the default created taxaonomy & add your own.
-
I searched for some documentation, could not find any.
I try to unhook the default group taxonomy from taxonomies.php:if ( function_exists('_wp_user_groups') ) { function add_user_groups_tax() { remove_action( 'init', 'wp_register_default_user_group_taxonomy' ); remove_action( 'init', 'wp_register_default_user_type_taxonomy' ); new WP_User_Taxonomy( 'user-group', 'users/group', array( 'singular' => __( 'Company', 'wp-user-groups' ), 'plural' => __( 'Companies', 'wp-user-groups' ) ) ); } add_action( 'init', 'add_user_groups_tax', 11 ); }
what happens is that user-groups is overridden, twice, and user-type still in place, not removed;
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to unhook the default created taxaonomy & add your own.’ is closed to new replies.