FEATURE Addind a modified 'rest_base' for taxonomy top avoid errors due to confusion with default inherited types in the rest base
This commit is contained in:
parent
67df0f541b
commit
b249d9f460
|
|
@ -235,6 +235,7 @@ function carhop_register_taxonomies()
|
||||||
'show_in_nav_menus' => true,
|
'show_in_nav_menus' => true,
|
||||||
'show_tagcloud' => true,
|
'show_tagcloud' => true,
|
||||||
'show_in_rest' => true, // Important pour l'éditeur Gutenberg
|
'show_in_rest' => true, // Important pour l'éditeur Gutenberg
|
||||||
|
'rest_base' => 'study_type',
|
||||||
'rewrite' => array('slug' => 'type'),
|
'rewrite' => array('slug' => 'type'),
|
||||||
);
|
);
|
||||||
register_taxonomy('type', array('analyses-etudes'), $args);
|
register_taxonomy('type', array('analyses-etudes'), $args);
|
||||||
|
|
@ -242,6 +243,7 @@ function carhop_register_taxonomies()
|
||||||
add_action('init', 'carhop_register_taxonomies', 0);
|
add_action('init', 'carhop_register_taxonomies', 0);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ------------------------------------------------
|
/* ------------------------------------------------
|
||||||
##### CHANGE LE NOM DES POSTS PAR ACTUALITES
|
##### CHANGE LE NOM DES POSTS PAR ACTUALITES
|
||||||
--------------------------------------------------*/
|
--------------------------------------------------*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user