REFACTORE Moving taxonomy decalration to the shared taxonomy component to best handled mutualized taxonomies between both websites
This commit is contained in:
parent
c0cc11fe17
commit
264a90b348
|
|
@ -8,47 +8,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
// Register Custom Taxonomy
|
|
||||||
function dynamiques_taxonomy_init()
|
|
||||||
{
|
|
||||||
|
|
||||||
$labels = array(
|
|
||||||
'name' => _x('Étiquettes', 'Taxonomy General Name', 'text_domain'),
|
|
||||||
'singular_name' => _x('Étiquette', 'Taxonomy Singular Name', 'text_domain'),
|
|
||||||
'menu_name' => __('Étiquettes', 'text_domain'),
|
|
||||||
'all_items' => __('Toutes les étiquettes', 'text_domain'),
|
|
||||||
'parent_item' => __('Étiquette parente', 'text_domain'),
|
|
||||||
'parent_item_colon' => __('Étiquette parente:', 'text_domain'),
|
|
||||||
'new_item_name' => __('Nouvelle étiquette', 'text_domain'),
|
|
||||||
'add_new_item' => __('Ajouter une étiquette', 'text_domain'),
|
|
||||||
'edit_item' => __('Modifier l\'étiquette', 'text_domain'),
|
|
||||||
'update_item' => __('Mettre à jour l\'étiquette', 'text_domain'),
|
|
||||||
'view_item' => __('Voir l\'étiquette', 'text_domain'),
|
|
||||||
'separate_items_with_commas' => __('Séparer les étiquettes avec des virgules', 'text_domain'),
|
|
||||||
'add_or_remove_items' => __('Ajouter ou supprimer des étiquettes', 'text_domain'),
|
|
||||||
'choose_from_most_used' => __('Choisir parmi les plus utilisées', 'text_domain'),
|
|
||||||
'popular_items' => __('Étiquettes populaires', 'text_domain'),
|
|
||||||
'search_items' => __('Rechercher des étiquettes', 'text_domain'),
|
|
||||||
'not_found' => __('Non trouvé', 'text_domain'),
|
|
||||||
'no_terms' => __('Aucune étiquette', 'text_domain'),
|
|
||||||
'items_list' => __('Liste des étiquettes', 'text_domain'),
|
|
||||||
'items_list_navigation' => __('Navigation dans la liste des étiquettes', 'text_domain'),
|
|
||||||
);
|
|
||||||
$args = array(
|
|
||||||
'show_in_rest' => true,
|
|
||||||
'labels' => $labels,
|
|
||||||
'hierarchical' => false,
|
|
||||||
'public' => true,
|
|
||||||
'show_ui' => true,
|
|
||||||
'show_admin_column' => true,
|
|
||||||
'show_in_nav_menus' => true,
|
|
||||||
'show_tagcloud' => true,
|
|
||||||
'meta_box_cb' => false,
|
|
||||||
);
|
|
||||||
register_taxonomy('etiquettes', array('articles', 'revues'), $args);
|
|
||||||
}
|
|
||||||
add_action('init', 'dynamiques_taxonomy_init', 0);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SYNCHRONISATION DES TAGS ('ETIQUETTES') ENTRE ARTICLES ET REVUES.
|
* SYNCHRONISATION DES TAGS ('ETIQUETTES') ENTRE ARTICLES ET REVUES.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user