27 lines
995 B
PHP
27 lines
995 B
PHP
<?php
|
|
|
|
// Catégories custom post type
|
|
register_taxonomy(
|
|
'customer', /* Voici donc la taxonomie */
|
|
array('customer'), /* nom du custom post type */
|
|
array(
|
|
'hierarchical' => true,
|
|
'labels' => array(
|
|
'name' => __('Catégories', 'customer'),
|
|
'singular_name' => __('Catégories', 'nom du theme'),
|
|
'search_items' => __('Rechercher une catégorie', 'nom du theme'),
|
|
'all_items' => __('Toutes les catégories', 'nom du theme'),
|
|
'parent_item' => __('Catégorie parente', 'nom du theme'),
|
|
'parent_item_colon' => __('Catégorie parente :', 'nom du theme'),
|
|
'edit_item' => __('Éditer une catégorie', 'nom du theme'),
|
|
'update_item' => __('Sauvegarder une catégorie', 'nom du theme'),
|
|
'add_new_item' => __('Ajouter une catégorie', 'nom du theme'),
|
|
'new_item_name' => __('Nouvelle catégorie', 'nom du theme')
|
|
),
|
|
'show_admin_column' => true,
|
|
'show_ui' => true,
|
|
'query_var' => true,
|
|
'rewrite' => array('slug' => 'customer'),
|
|
)
|
|
);
|