Clients
// Register Custom Post Type
function sondagePB_clients() {
$labels = array(
'name' => _x( 'Clients', 'Post Type General Name', 'Patte Blanche' ),
'singular_name' => _x( 'Client', 'Post Type Singular Name', 'Patte Blanche' ),
'menu_name' => __( 'Clients', 'Patte Blanche' ),
'name_admin_bar' => __( 'Clients', 'Patte Blanche' ),
'archives' => __( 'Archives des clients', 'Patte Blanche' ),
'parent_item_colon' => __( 'Parent Item:', 'Patte Blanche' ),
'all_items' => __( 'Tous les clients', 'Patte Blanche' ),
'add_new_item' => __( 'Ajouter un client', 'Patte Blanche' ),
'add_new' => __( 'Ajouter un client', 'Patte Blanche' ),
'new_item' => __( 'Nouveau client', 'Patte Blanche' ),
'edit_item' => __( 'Modifier un client', 'Patte Blanche' ),
'update_item' => __( 'Mise à jour du client', 'Patte Blanche' ),
'view_item' => __( 'Voir le client', 'Patte Blanche' ),
'search_items' => __( 'Chercher un client', 'Patte Blanche' ),
'not_found' => __( 'Aucun client', 'Patte Blanche' ),
'not_found_in_trash' => __( 'Aucun client dans la poubelle', 'Patte Blanche' ),
'featured_image' => __( 'Image du client', 'Patte Blanche' ),
'set_featured_image' => __( 'Choisir image du client', 'Patte Blanche' ),
'remove_featured_image' => __( 'Retirer image du client', 'Patte Blanche' ),
'use_featured_image' => __( 'Utiliser comme image du client', 'Patte Blanche' ),
'insert_into_item' => __( 'Ajouter un client', 'Patte Blanche' ),
'uploaded_to_this_item' => __( 'Uploader pour se client', 'Patte Blanche' ),
'items_list' => __( 'Liste des clients', 'Patte Blanche' ),
'items_list_navigation' => __( 'Items list navigation', 'Patte Blanche' ),
'filter_items_list' => __( 'Filtrer les clients par liste', 'Patte Blanche' ),
);
$args = array(
'label' => __( 'Client', 'Patte Blanche' ),
'description' => __( 'Module permettant d'ajouter des clients', 'Patte Blanche' ),
'labels' => $labels,
'supports' => array( 'title', ),
'taxonomies' => array( 'chargeProjet' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-id',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'sondagePB_client', $args );
}
add_action( 'init', 'sondagePB_clients', 0 );