updating news_type taxonomy to be better handled by javascript
This commit is contained in:
parent
fe32e7e1c8
commit
6dd7476e8f
|
|
@ -80,7 +80,7 @@ function homegrade_add_custom_taxonomies()
|
|||
|
||||
|
||||
// ————— Type de news —————
|
||||
register_taxonomy('news-type', 'post', array(
|
||||
register_taxonomy('news_type', 'post', array(
|
||||
'labels' => array(
|
||||
'name' => __('Types', 'homegrade-theme__texte-backoffice'),
|
||||
'singular_name' => __('Type', 'homegrade-theme__texte-backoffice'),
|
||||
|
|
@ -95,6 +95,11 @@ function homegrade_add_custom_taxonomies()
|
|||
'menu_name' => __('Type', 'homegrade-theme__texte-backoffice'),
|
||||
),
|
||||
'hierarchical' => false,
|
||||
'show_in_rest' => true,
|
||||
'default_term' => [
|
||||
'name' => ' Général',
|
||||
'slug' => 'general',
|
||||
],
|
||||
|
||||
));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user