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