$taxonomies = array(
array(
'name' => 'service_type',
'object_type' => 'service',
'args' => array(
'labels' => array(
'name' => 'Service Types',
'singular_name' => 'Service Type',
'search_items' => 'Search Service Types',
'all_items' => 'All Service Types',
'parent_item' => 'Parent Service Types',
'parent_item_colon' => 'Parent Service Types:',
'edit_item' => 'Edit Service Type',
'update_item' => 'Update Service Type',
'add_new_item' => 'Add New Service Type',
'new_item_name' => 'New Service Type',
'menu_name' => 'Service Types',
),
'hierarchical' => true,
'rewrite' => array(
'slug' => 'service_type',
'with_front' => true,
),
'show_ui' => true,
'show_in_rest' => true,
),
),
);
parent::set_taxonomies( $taxonomies );