Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Driver Types

// Register Custom Taxonomy
function driver_types() {

	$labels = array(
		'name'                       => _x( 'Driver Types', 'Taxonomy General Name', 'oxygen_formula_types' ),
		'singular_name'              => _x( 'Driver Type', 'Taxonomy Singular Name', 'oxygen_formula_types' ),
		'menu_name'                  => __( 'Driver Types', 'oxygen_formula_types' ),
		'all_items'                  => __( 'All Driver types', 'oxygen_formula_types' ),
		'parent_item'                => __( 'Parent Driver type', 'oxygen_formula_types' ),
		'parent_item_colon'          => __( 'Parent Driver type:', 'oxygen_formula_types' ),
		'new_item_name'              => __( 'New Driver type Name', 'oxygen_formula_types' ),
		'add_new_item'               => __( 'Add Driver type Item', 'oxygen_formula_types' ),
		'edit_item'                  => __( 'Edit Driver type', 'oxygen_formula_types' ),
		'update_item'                => __( 'Update Driver type', 'oxygen_formula_types' ),
		'view_item'                  => __( 'View Driver type', 'oxygen_formula_types' ),
		'separate_items_with_commas' => __( 'Separate Driver types with commas', 'oxygen_formula_types' ),
		'add_or_remove_items'        => __( 'Add or remove Driver types', 'oxygen_formula_types' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'oxygen_formula_types' ),
		'popular_items'              => __( 'Popular Driver types', 'oxygen_formula_types' ),
		'search_items'               => __( 'Search Driver types', 'oxygen_formula_types' ),
		'not_found'                  => __( 'Not Found', 'oxygen_formula_types' ),
		'no_terms'                   => __( 'No Driver types', 'oxygen_formula_types' ),
		'items_list'                 => __( 'Driver types list', 'oxygen_formula_types' ),
		'items_list_navigation'      => __( 'Driver types list navigation', 'oxygen_formula_types' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => false,
		'show_in_rest'               => false,
	);
	register_taxonomy( 'driver_types', array( 'drivers' ), $args );

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