• Resolved Mark Creeten

    (@markcreeten)


    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;

    • This topic was modified 6 years, 9 months ago by Mark Creeten.
Viewing 1 replies (of 1 total)
  • Thread Starter Mark Creeten

    (@markcreeten)

    never mind, solved it by setting priority to 9.
    Documentation still needed for this plugin, the link to Github pointing to documentation is just a copy of this plugin page.

Viewing 1 replies (of 1 total)
  • The topic ‘How to unhook the default created taxaonomy & add your own.’ is closed to new replies.