club info category
// Register Custom Taxonomy
function club_info_taxonomy() {
$labels = array(
'name' => _x( 'Clubs', 'Taxonomy General Name', 'strka_text' ),
'singular_name' => _x( 'Club', 'Taxonomy Singular Name', 'strka_text' ),
'menu_name' => __( 'Club', 'strka_text' ),
'all_items' => __( 'All Clubs', 'strka_text' ),
'parent_item' => __( 'Parent Club', 'strka_text' ),
'parent_item_colon' => __( 'Parent Club:', 'strka_text' ),
'new_item_name' => __( 'New Club Name', 'strka_text' ),
'add_new_item' => __( 'Add New Club', 'strka_text' ),
'edit_item' => __( 'Edit Club', 'strka_text' ),
'update_item' => __( 'Update Club', 'strka_text' ),
'view_item' => __( 'View Club', 'strka_text' ),
'separate_items_with_commas' => __( 'Separate clubs with commas', 'strka_text' ),
'add_or_remove_items' => __( 'Add or remove clubs', 'strka_text' ),
'choose_from_most_used' => __( 'Choose from the most used', 'strka_text' ),
'popular_items' => __( 'Popular Clubs', 'strka_text' ),
'search_items' => __( 'Search Clubs', 'strka_text' ),
'not_found' => __( 'Not Found', 'strka_text' ),
'no_terms' => __( 'No clubs', 'strka_text' ),
'items_list' => __( 'Clubs list', 'strka_text' ),
'items_list_navigation' => __( 'Clubs list navigation', 'strka_text' ),
);
$rewrite = array(
'slug' => '',
'with_front' => true,
'hierarchical' => true,
);
$capabilities = array(
'manage_terms' => 'manage_clubs',
'edit_terms' => 'manage_clubs',
'delete_terms' => 'manage_clubs',
'assign_terms' => 'edit_posts',
);
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => false,
'show_tagcloud' => false,
'rewrite' => $rewrite,
'capabilities' => $capabilities,
'show_in_rest' => false,
);
register_taxonomy( 'club', array( 'editor_club_info' ), $args );
}
add_action( 'init', 'club_info_taxonomy', 0 );