Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Coaching Type

if ( ! function_exists( 'create_coaching_type' ) ) {

// Register Custom Taxonomy
function create_coaching_type() {

	$labels = array(
		'name'                       => _x( 'Coaching Types', 'Taxonomy General Name', 'cli' ),
		'singular_name'              => _x( 'Coaching Type', 'Taxonomy Singular Name', 'cli' ),
		'menu_name'                  => __( 'Coaching Types', 'cli' ),
		'all_items'                  => __( 'All Types', 'cli' ),
		'parent_item'                => __( 'Parent Type', 'cli' ),
		'parent_item_colon'          => __( 'Parent Type:', 'cli' ),
		'new_item_name'              => __( 'New Type', 'cli' ),
		'add_new_item'               => __( 'Add New Type', 'cli' ),
		'edit_item'                  => __( 'Edit Type', 'cli' ),
		'update_item'                => __( 'Update Type', 'cli' ),
		'view_item'                  => __( 'View Item', 'cli' ),
		'separate_items_with_commas' => __( 'Separate type with commas', 'cli' ),
		'add_or_remove_items'        => __( 'Add or remove type', 'cli' ),
		'choose_from_most_used'      => __( 'Choose from the most used type', 'cli' ),
		'popular_items'              => __( 'Popular Items', 'cli' ),
		'search_items'               => __( 'Search Type', 'cli' ),
		'not_found'                  => __( 'Not Found', 'cli' ),
		'no_terms'                   => __( 'No items', 'cli' ),
		'items_list'                 => __( 'Items list', 'cli' ),
		'items_list_navigation'      => __( 'Items list navigation', 'cli' ),
	);
	$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( 'coaching_type', array( 'cli_coaches' ), $args );

}
add_action( 'init', 'create_coaching_type', 0 );

}