Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Tour operator taxonomy

// Register Custom Taxonomy
function init() {

	$labels = array(
		'name'                       => _x( 'Tour operators', 'Taxonomy General Name', 'armturismo' ),
		'singular_name'              => _x( 'Tour operator', 'Taxonomy Singular Name', 'armturismo' ),
		'menu_name'                  => __( 'Tour operator', 'armturismo' ),
		'all_items'                  => __( 'All Operators', 'armturismo' ),
		'parent_item'                => __( 'Parent Operator', 'armturismo' ),
		'parent_item_colon'          => __( 'Parent Operator:', 'armturismo' ),
		'new_item_name'              => __( 'New Operator', 'armturismo' ),
		'add_new_item'               => __( 'Add New Operator', 'armturismo' ),
		'edit_item'                  => __( 'Edit Operator', 'armturismo' ),
		'update_item'                => __( 'Update Operator', 'armturismo' ),
		'separate_items_with_commas' => __( 'Separate operators with commas', 'armturismo' ),
		'search_items'               => __( 'Search Operators', 'armturismo' ),
		'add_or_remove_items'        => __( 'Add or remove operators', 'armturismo' ),
		'choose_from_most_used'      => __( 'Choose from the most used operators', 'armturismo' ),
		'not_found'                  => __( 'Tour Operator Not Found', 'armturismo' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => false,
		'show_tagcloud'              => false,
		'rewrite'                    => false,
	);
	register_taxonomy( 'tour_operator', array( 'sightseeing', 'tour_package' ), $args );

}

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