Clients post type
// Register Custom Post Type
function create_clients() {
$labels = array(
'name' => _x( 'Clients', 'Post Type General Name', 'text_domain' ),
'singular_name' => _x( 'Client', 'Post Type Singular Name', 'text_domain' ),
'menu_name' => __( 'Clients', 'text_domain' ),
'name_admin_bar' => __( 'Clients', 'text_domain' ),
'archives' => __( 'Archives des Clients', 'text_domain' ),
'parent_item_colon' => __( 'Client Parent:', 'text_domain' ),
'all_items' => __( 'Touts les clients', 'text_domain' ),
'add_new_item' => __( 'Ajouter un nouveau client', 'text_domain' ),
'add_new' => __( 'Ajouter nouveau', 'text_domain' ),
'new_item' => __( 'Nouveau Client', 'text_domain' ),
'edit_item' => __( 'Editer le client', 'text_domain' ),
'update_item' => __( 'Mettre a jour le client', 'text_domain' ),
'view_item' => __( 'Regarder le client', 'text_domain' ),
'search_items' => __( 'Chercher le client', 'text_domain' ),
'not_found' => __( 'Non trouvee', 'text_domain' ),
'not_found_in_trash' => __( 'Not trouvee', 'text_domain' ),
'featured_image' => __( 'L'image sélectionnée', 'text_domain' ),
'set_featured_image' => __( 'Réglez l'image sélectionnée', 'text_domain' ),
'remove_featured_image' => __( 'Supprimer l'image sélectionnée', 'text_domain' ),
'use_featured_image' => __( 'Utilisation en tant que l'image sélectionnée', 'text_domain' ),
'insert_into_item' => __( 'Insert into item', 'text_domain' ),
'uploaded_to_this_item' => __( 'Téléchargé à cet article', 'text_domain' ),
'items_list' => __( 'Liste des articles', 'text_domain' ),
'items_list_navigation' => __( 'Liste des éléments de navigation', 'text_domain' ),
'filter_items_list' => __( 'Liste Filtrer les articles', 'text_domain' ),
);
$args = array(
'label' => __( 'Client', 'text_domain' ),
'description' => __( 'en3mots cleints', 'text_domain' ),
'labels' => $labels,
'supports' => array( 'title', ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-admin-users',
'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( 'client', $args );
}
add_action( 'init', 'create_clients', 0 );