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