membres
// Register Custom Post Type
function custom_post_type_membre() {
$labels = array(
'name' => _x( 'membres', 'Post Type General Name', 'text_domain' ),
'singular_name' => _x( 'menbre', 'Post Type Singular Name', 'text_domain' ),
'menu_name' => __( 'Membres', 'text_domain' ),
'name_admin_bar' => __( 'Membre', 'text_domain' ),
'parent_item_colon' => __( 'Parent du membre', 'text_domain' ),
'all_items' => __( 'Tous les membres', 'text_domain' ),
'add_new_item' => __( 'Ajouter un nouveau membre', 'text_domain' ),
'add_new' => __( 'Ajouter un membre', 'text_domain' ),
'new_item' => __( 'New Item', 'text_domain' ),
'edit_item' => __( 'Modifier un membre ', 'text_domain' ),
'update_item' => __( 'Mettre à jour le membre', 'text_domain' ),
'view_item' => __( 'Voir un membre', 'text_domain' ),
'search_items' => __( 'Recherche un membre', 'text_domain' ),
'not_found' => __( 'Aucun membre trouvé', 'text_domain' ),
'not_found_in_trash' => __( 'Aucun membre trouvé dans la corbeille', 'text_domain' ),
);
$args = array(
'label' => __( 'menbre', 'text_domain' ),
'description' => __( 'Membres de point est', 'text_domain' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'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( 'membre', $args );
}
add_action( 'init', 'custom_post_type_membre', 0 );