University City
if ( ! function_exists( 'estry_edu_mr_city_tax' ) ) {
// Register Custom Taxonomy
function estry_edu_mr_city_tax() {
$labels = array(
'name' => _x( 'Cities', 'Taxonomy General Name', 'estry-edu-mar' ),
'singular_name' => _x( 'City', 'Taxonomy Singular Name', 'estry-edu-mar' ),
'menu_name' => __( 'Cities', 'estry-edu-mar' ),
'all_items' => __( 'All Cities', 'estry-edu-mar' ),
'parent_item' => __( 'Parent City', 'estry-edu-mar' ),
'parent_item_colon' => __( 'Parent City:', 'estry-edu-mar' ),
'new_item_name' => __( 'New City Name', 'estry-edu-mar' ),
'add_new_item' => __( 'Add New City', 'estry-edu-mar' ),
'edit_item' => __( 'Edit City', 'estry-edu-mar' ),
'update_item' => __( 'Update City', 'estry-edu-mar' ),
'view_item' => __( 'View City', 'estry-edu-mar' ),
'separate_items_with_commas' => __( 'Separate Cities with commas', 'estry-edu-mar' ),
'add_or_remove_items' => __( 'Add or remove Cities', 'estry-edu-mar' ),
'choose_from_most_used' => __( 'Choose from the most used', 'estry-edu-mar' ),
'popular_items' => __( 'Popular Cities', 'estry-edu-mar' ),
'search_items' => __( 'Search Cities', 'estry-edu-mar' ),
'not_found' => __( 'Not Found', 'estry-edu-mar' ),
'no_terms' => __( 'No cities', 'estry-edu-mar' ),
'items_list' => __( 'Cities list', 'estry-edu-mar' ),
'items_list_navigation' => __( 'Cities list navigation', 'estry-edu-mar' ),
);
$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,
'rest_base' => 'estry-edu-cities',
);
register_taxonomy( 'estry-edu-city', array( 'university' ), $args );
}
add_action( 'init', 'estry_edu_mr_city_tax', 0 );
}