Type de Service
if ( ! function_exists( 'service_categorie' ) ) {
// Register Custom Taxonomy
function service_categorie() {
$labels = array(
'name' => _x( 'Types', 'Taxonomy General Name', 'Avada' ),
'singular_name' => _x( 'Type', 'Taxonomy Singular Name', 'Avada' ),
'menu_name' => __( 'Type', 'Avada' ),
'all_items' => __( 'Tous les Types', 'Avada' ),
'parent_item' => __( 'Type Parent', 'Avada' ),
'parent_item_colon' => __( 'Type Parent :', 'Avada' ),
'new_item_name' => __( 'Nouveau Type', 'Avada' ),
'add_new_item' => __( 'Ajouter un nouveau type', 'Avada' ),
'edit_item' => __( 'Editer un type', 'Avada' ),
'update_item' => __( 'Mettre à jour le type', 'Avada' ),
'view_item' => __( 'Voir le type', 'Avada' ),
'separate_items_with_commas' => __( 'Type séparé par des virgules', 'Avada' ),
'add_or_remove_items' => __( 'Ajouter ou supprimer un type', 'Avada' ),
'choose_from_most_used' => __( 'Choose from the most used', 'Avada' ),
'popular_items' => __( 'Type populaire', 'Avada' ),
'search_items' => __( 'Recherche types', 'Avada' ),
'not_found' => __( 'Non trouvé', 'Avada' ),
'no_terms' => __( 'Pas de types', 'Avada' ),
'items_list' => __( 'liste des tyoes', 'Avada' ),
'items_list_navigation' => __( 'navigation les types', 'Avada' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
'show_in_rest' => true,
);
register_taxonomy( 'service_type', array( 'service' ), $args );
}
add_action( 'init', 'service_categorie', 0 );
}