Summit seminar_location
if ( ! function_exists( 'seminar_location' ) ) {
// Register Custom Taxonomy
function seminar_location() {
$labels = array(
'name' => _x( 'Seminar Locations', 'Taxonomy General Name', 'tmm_seminar' ),
'singular_name' => _x( 'Seminar Location', 'Taxonomy Singular Name', 'tmm_seminar' ),
'menu_name' => __( 'Seminar', 'tmm_seminar' ),
'all_items' => __( 'All Seminars', 'tmm_seminar' ),
'parent_item' => __( 'Parent Seminar', 'tmm_seminar' ),
'parent_item_colon' => __( 'Parent Seminar:', 'tmm_seminar' ),
'new_item_name' => __( 'New Seminar Name', 'tmm_seminar' ),
'add_new_item' => __( 'Add New Seminar', 'tmm_seminar' ),
'edit_item' => __( 'Edit Seminar', 'tmm_seminar' ),
'update_item' => __( 'Update Seminar', 'tmm_seminar' ),
'view_item' => __( 'View Seminar', 'tmm_seminar' ),
'separate_items_with_commas' => __( 'Separate seminars with commas', 'tmm_seminar' ),
'add_or_remove_items' => __( 'Add or remove seminars', 'tmm_seminar' ),
'choose_from_most_used' => __( 'Choose from the most used', 'tmm_seminar' ),
'popular_items' => __( 'Popular Seminars', 'tmm_seminar' ),
'search_items' => __( 'Search Seminars', 'tmm_seminar' ),
'not_found' => __( 'Not Found', 'tmm_seminar' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => false,
'show_tagcloud' => false,
);
register_taxonomy( 'seminar_location', array( 'seminar' ), $args );
}
// Hook into the 'init' action
add_action( 'init', 'seminar_location', 0 );
}