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