updating news_type taxonomy to hide defautl metabox in editor
This commit is contained in:
parent
e21912d2ca
commit
0d7a445bb0
|
|
@ -66,9 +66,9 @@ function homegrade_add_custom_taxonomies()
|
|||
'show_in_rest' => true, // Needed for tax to appear in Gutenberg editor
|
||||
'show_ui' => true,
|
||||
'show_admin_column' => false,
|
||||
'hierarchical' => true, // This will allow URL's like "/locations/boston/cambridge/"
|
||||
'show_in_quick_edit' => false,
|
||||
'meta_box_cb' => false,
|
||||
'hierarchical' => true, // This will allow URL's like "/locations/boston/cambridge/"
|
||||
'rewrite' => array(
|
||||
'slug' => 'questions-thematiques',
|
||||
// 'with_front' => false,
|
||||
|
|
@ -95,7 +95,11 @@ function homegrade_add_custom_taxonomies()
|
|||
'menu_name' => __('Type', 'homegrade-theme__texte-backoffice'),
|
||||
),
|
||||
'hierarchical' => false,
|
||||
'show_in_rest' => true,
|
||||
'show_in_rest' => true, // Needed for tax to appear in Gutenberg editor
|
||||
'show_ui' => true,
|
||||
'show_admin_column' => false,
|
||||
'show_in_quick_edit' => false,
|
||||
'meta_box_cb' => false,
|
||||
'default_term' => [
|
||||
'name' => ' Général',
|
||||
'slug' => 'general',
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user