Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

CT Team Roles

// Register Custom Taxonomy
function team_cat() {

	$labels = array(
		'name'                       => _x( 'Team Roles', 'Taxonomy General Name', 'text_domain' ),
		'singular_name'              => _x( 'Team Role', 'Taxonomy Singular Name', 'text_domain' ),
		'menu_name'                  => __( 'Team Role', 'text_domain' ),
		'all_items'                  => __( 'All Team Roles', 'text_domain' ),
		'parent_item'                => __( 'Parent Team Role', 'text_domain' ),
		'parent_item_colon'          => __( 'Parent Team Role:', 'text_domain' ),
		'new_item_name'              => __( 'New Team Role Name', 'text_domain' ),
		'add_new_item'               => __( 'Add Team Role', 'text_domain' ),
		'edit_item'                  => __( 'Edit Team Role', 'text_domain' ),
		'update_item'                => __( 'Update Team Role', 'text_domain' ),
		'view_item'                  => __( 'View Team Role', 'text_domain' ),
		'separate_items_with_commas' => __( 'Separate Team Roles with commas', 'text_domain' ),
		'add_or_remove_items'        => __( 'Add or remove Team Roles', 'text_domain' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'text_domain' ),
		'popular_items'              => __( 'Popular Team Roles', 'text_domain' ),
		'search_items'               => __( 'Search Team Roles', 'text_domain' ),
		'not_found'                  => __( 'Team Role not Found', 'text_domain' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
	);
	register_taxonomy( 'team_cat', array( 'team' ), $args );

}

// Hook into the 'init' action
add_action( 'init', 'team_cat', 0 );