Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

courses_place_taxonomy

if ( ! function_exists( 'courses_place_taxonomy' ) ) {

// Register Custom Taxonomy
function courses_place_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Places', 'Taxonomy General Name', 'empform' ),
		'singular_name'              => _x( 'Place', 'Taxonomy Singular Name', 'empform' ),
		'menu_name'                  => __( 'Places', 'empform' ),
		'all_items'                  => __( 'All places', 'empform' ),
		'parent_item'                => __( 'Parent place', 'empform' ),
		'parent_item_colon'          => __( 'Parent place:', 'empform' ),
		'new_item_name'              => __( 'New place', 'empform' ),
		'add_new_item'               => __( 'Add new place', 'empform' ),
		'edit_item'                  => __( 'Edit place', 'empform' ),
		'update_item'                => __( 'Update place', 'empform' ),
		'view_item'                  => __( 'View place', 'empform' ),
		'separate_items_with_commas' => __( 'Separate places with commas', 'empform' ),
		'add_or_remove_items'        => __( 'Add or remove places', 'empform' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'empform' ),
		'popular_items'              => __( 'Popular places', 'empform' ),
		'search_items'               => __( 'Search places', 'empform' ),
		'not_found'                  => __( 'Not Found', 'empform' ),
		'no_terms'                   => __( 'No places', 'empform' ),
		'items_list'                 => __( 'Places list', 'empform' ),
		'items_list_navigation'      => __( 'Places list navigation', 'empform' ),
	);
	$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( 'courses_place', array( 'empform_courses' ), $args );

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

}