People Role Taxonomy
Goes with tf_people CPT
if ( ! function_exists( 'tf_people_role' ) ) { // Register Custom Taxonomy function tf_people_role() { $labels = array( 'name' => 'Roles', 'singular_name' => 'Role', 'menu_name' => 'Roles', 'all_items' => 'All Roles', 'parent_item' => 'Parent Role', 'parent_item_colon' => 'Parent Role:', 'new_item_name' => 'New Role Name', 'add_new_item' => 'Add New Role', 'edit_item' => 'Edit Role', 'update_item' => 'Update Role', 'view_item' => 'View Role', 'separate_items_with_commas' => 'Separate roles with commas', 'add_or_remove_items' => 'Add or remove roles', 'choose_from_most_used' => 'Choose from the most used', 'popular_items' => 'Popular Roles', 'search_items' => 'Search Roles', 'not_found' => 'Role Not Found', 'no_terms' => 'No roles', 'items_list' => 'Role list', 'items_list_navigation' => 'Roles list navigation', ); $rewrite = array( 'slug' => 'team-role', 'with_front' => true, 'hierarchical' => false, ); $args = array( 'labels' => $labels, 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => false, 'rewrite' => $rewrite, 'show_in_rest' => true, ); register_taxonomy( 'tf_people_role', array( 'tf_people' ), $args ); } add_action( 'init', 'tf_people_role', 0 ); }