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