updating news_type taxonomy to hide defautl metabox in editor

This commit is contained in:
Antoine M 2023-11-29 19:27:08 +01:00
parent e21912d2ca
commit 0d7a445bb0

View File

@ -66,9 +66,9 @@ function homegrade_add_custom_taxonomies()
'show_in_rest' => true, // Needed for tax to appear in Gutenberg editor 'show_in_rest' => true, // Needed for tax to appear in Gutenberg editor
'show_ui' => true, 'show_ui' => true,
'show_admin_column' => false, 'show_admin_column' => false,
'hierarchical' => true, // This will allow URL's like "/locations/boston/cambridge/"
'show_in_quick_edit' => false, 'show_in_quick_edit' => false,
'meta_box_cb' => false, 'meta_box_cb' => false,
'hierarchical' => true, // This will allow URL's like "/locations/boston/cambridge/"
'rewrite' => array( 'rewrite' => array(
'slug' => 'questions-thematiques', 'slug' => 'questions-thematiques',
// 'with_front' => false, // 'with_front' => false,
@ -95,7 +95,11 @@ function homegrade_add_custom_taxonomies()
'menu_name' => __('Type', 'homegrade-theme__texte-backoffice'), 'menu_name' => __('Type', 'homegrade-theme__texte-backoffice'),
), ),
'hierarchical' => false, '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' => [ 'default_term' => [
'name' => ' Général', 'name' => ' Général',
'slug' => 'general', 'slug' => 'general',