Service Treatment Conditions
if ( ! function_exists( 'service_condition_treatment' ) ) {
// Register Custom Taxonomy
function service_condition_treatment() {
$labels = array(
'name' => _x( 'Condition Treatments', 'Taxonomy General Name', 'service-condition-treatment' ),
'singular_name' => _x( 'Condition Treatment', 'Taxonomy Singular Name', 'service-condition-treatment' ),
'menu_name' => __( 'Condition Treatments', 'service-condition-treatment' ),
'all_items' => __( 'All Condition Treatments', 'service-condition-treatment' ),
'parent_item' => __( 'Parent Item', 'service-condition-treatment' ),
'parent_item_colon' => __( 'Parent Item:', 'service-condition-treatment' ),
'new_item_name' => __( 'New Item Name', 'service-condition-treatment' ),
'add_new_item' => __( 'Add New Item', 'service-condition-treatment' ),
'edit_item' => __( 'Edit Item', 'service-condition-treatment' ),
'update_item' => __( 'Update Item', 'service-condition-treatment' ),
'view_item' => __( 'View Item', 'service-condition-treatment' ),
'separate_items_with_commas' => __( 'Separate items with commas', 'service-condition-treatment' ),
'add_or_remove_items' => __( 'Add or remove items', 'service-condition-treatment' ),
'choose_from_most_used' => __( 'Choose from the most used', 'service-condition-treatment' ),
'popular_items' => __( 'Popular Items', 'service-condition-treatment' ),
'search_items' => __( 'Search Items', 'service-condition-treatment' ),
'not_found' => __( 'Not Found', 'service-condition-treatment' ),
'no_terms' => __( 'No items', 'service-condition-treatment' ),
'items_list' => __( 'Items list', 'service-condition-treatment' ),
'items_list_navigation' => __( 'Items list navigation', 'service-condition-treatment' ),
);
$rewrite = array(
'slug' => 'conditions',
'with_front' => false,
'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,
'rewrite' => $rewrite,
'show_in_rest' => true,
);
register_taxonomy( 'service_condition_treatment', array( 'service' ), $args );
}
add_action( 'init', 'service_condition_treatment', 0 );
}