Catégorie des Ressources et Outils
if ( ! function_exists( 'create_taxonomy_ressources_outils' ) ) {
// Register Custom Taxonomy
function create_taxonomy_ressources_outils() {
$labels = array(
'name' => 'Catégories des Ressources et Outils',
'singular_name' => 'Catégorie des Ressources et Outils',
'menu_name' => 'Catégorie des Ressources et Outils',
'all_items' => 'Toutes les catégorie des Ressources et Outils',
'parent_item' => '',
'parent_item_colon' => '',
'new_item_name' => '',
'add_new_item' => '',
'edit_item' => '',
'update_item' => '',
'view_item' => '',
'separate_items_with_commas' => '',
'add_or_remove_items' => '',
'choose_from_most_used' => '',
'popular_items' => '',
'search_items' => '',
'not_found' => '',
'no_terms' => '',
'items_list' => '',
'items_list_navigation' => '',
);
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
);
register_taxonomy( 'ressources_outils_taxonomy', array( 'ressources_outils' ), $args );
}
add_action( 'init', 'create_taxonomy_ressources_outils', 0 );
}