Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Instructor

// Register Custom Taxonomy
function cfd_taxonomy_instructors() {

	$labels = array(
		'name'                       => 'Instructors',
		'singular_name'              => 'Instructor',
		'menu_name'                  => 'Instructor',
		'all_items'                  => 'All Instructors',
		'parent_item'                => 'Parent Instructor',
		'parent_item_colon'          => 'Parent Instructor:',
		'new_item_name'              => 'New Instructor Name',
		'add_new_item'               => 'Add New Instructor',
		'edit_item'                  => 'Edit Instructor',
		'update_item'                => 'Update Instructor',
		'view_item'                  => 'View Instructor',
		'separate_items_with_commas' => 'Separate instructors with commas',
		'add_or_remove_items'        => 'Add or remove instructors',
		'choose_from_most_used'      => 'Choose from the most used',
		'popular_items'              => 'Popular Instructors',
		'search_items'               => 'Search Instructors',
		'not_found'                  => 'Not Found',
		'no_terms'                   => 'No instructor',
		'items_list'                 => 'Instructors list',
		'items_list_navigation'      => 'Instructors list navigation',
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => false,
		'show_tagcloud'              => false,
		'query_var'                  => 'cfd_taxonomy_instructor',
		'show_in_rest'               => false,
	);
	register_taxonomy( 'instructors', array( 'instructors', 'product', 'premium-training', 'seminars', 'post' ), $args );

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