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