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