Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

motor_cacity_taxonomy

if ( ! function_exists( 'motor_cacity_taxonomy' ) ) {

// Register Custom Taxonomy
function motor_cacity_taxonomy() {

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

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

}