Black Conferences Era Taxonomy
if ( ! function_exists( 'taxonomy_conference_era' ) ) {
// Register Custom Taxonomy
function taxonomy_conference_era() {
$labels = array(
'name' => _x( 'Eras', 'Taxonomy General Name', 's34' ),
'singular_name' => _x( 'Era', 'Taxonomy Singular Name', 's34' ),
'menu_name' => __( 'Era', 's34' ),
'all_items' => __( 'All Items', 's34' ),
'parent_item' => __( 'Parent Item', 's34' ),
'parent_item_colon' => __( 'Parent Item:', 's34' ),
'new_item_name' => __( 'New Item Name', 's34' ),
'add_new_item' => __( 'Add New Item', 's34' ),
'edit_item' => __( 'Edit Item', 's34' ),
'update_item' => __( 'Update Item', 's34' ),
'view_item' => __( 'View Item', 's34' ),
'separate_items_with_commas' => __( 'Separate items with commas', 's34' ),
'add_or_remove_items' => __( 'Add or remove items', 's34' ),
'choose_from_most_used' => __( 'Choose from the most used', 's34' ),
'popular_items' => __( 'Popular Items', 's34' ),
'search_items' => __( 'Search Items', 's34' ),
'not_found' => __( 'Not Found', 's34' ),
'no_terms' => __( 'No items', 's34' ),
'items_list' => __( 'Items list', 's34' ),
'items_list_navigation' => __( 'Items list navigation', 's34' ),
);
$rewrite = array(
'slug' => 'era',
'with_front' => true,
'hierarchical' => false,
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
'query_var' => 'era',
'rewrite' => $rewrite,
'show_in_rest' => true,
'rest_base' => 'era',
);
register_taxonomy( 'era', array( 'conference' ), $args );
}
add_action( 'init', 'taxonomy_conference_era', 0 );
}