Boat Type
if ( ! function_exists( 'boat_type' ) ) {
// Register Custom Taxonomy
function boat_type() {
$labels = array(
'name' => _x( 'Boat Types', 'Taxonomy General Name', 'bookaboat' ),
'singular_name' => _x( 'Boat Type', 'Taxonomy Singular Name', 'bookaboat' ),
'menu_name' => __( 'Boat Types', 'bookaboat' ),
'all_items' => __( 'All Boat Types', 'bookaboat' ),
'parent_item' => __( 'Parent Boat Type', 'bookaboat' ),
'parent_item_colon' => __( 'Parent Boat Type:', 'bookaboat' ),
'new_item_name' => __( 'New Boat Type', 'bookaboat' ),
'add_new_item' => __( 'Add New Boat Type', 'bookaboat' ),
'edit_item' => __( 'Edit Boat Type', 'bookaboat' ),
'update_item' => __( 'Update Boat Type', 'bookaboat' ),
'view_item' => __( 'View Boat Type', 'bookaboat' ),
'separate_items_with_commas' => __( 'Separate items with commas', 'bookaboat' ),
'add_or_remove_items' => __( 'Add or remove Boat Types', 'bookaboat' ),
'choose_from_most_used' => __( 'Choose from the most used', 'bookaboat' ),
'popular_items' => __( 'Popular Boat Types', 'bookaboat' ),
'search_items' => __( 'Search Boat Types', 'bookaboat' ),
'not_found' => __( 'Not Found', 'bookaboat' ),
'no_terms' => __( 'No Boat Types', 'bookaboat' ),
'items_list' => __( 'Boat Types list', 'bookaboat' ),
'items_list_navigation' => __( 'Boat Types navigation', 'bookaboat' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => false,
);
register_taxonomy( 'boat_type', array( 'boat_rental' ), $args );
}
add_action( 'init', 'boat_type', 0 );
}