Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Appliance Type

if ( ! function_exists( 'appliance_type' ) ) {

// Register Custom Taxonomy
function appliance_type() {

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

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

}