Creating Custom Taxonomy without mapping to any post type

Question

I just want to create a custom taxonomy for my plugin use but this should not be linked with any post-type and also I need to add the menu in my custom admin menu (which i have already created).

I tried the following Code:

$args = array(
    'labels'                     => $labels,
    'hierarchical'               => true,
    'public'                     => false,
    'show_ui'                    => 'tools.php',
    'show_in_menu'               => false,
    'show_admin_column'          => false,
    'show_in_nav_menus'          => false,
    'show_tagcloud'              => false,
    'rewrite'                    => false,
    'update_count_callback'      => 'count_aprwc',
);
register_taxonomy( 'aprwc_rating_criteria',array(''), $args );
0
Varun Sridharan 2 months 0 Answers 13 views 0

Leave an answer