Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Warp Vehicles taxonomy

Basic

if ( ! function_exists( 'warp_vehicles_tax' ) ) {

// Register Custom Taxonomy
function warp_vehicles_tax() {

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

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

}