Evènement
Activité de type concert, showcase, ect…
if ( ! function_exists('evenement') ) { // Register Custom Post Type function evenement() { $labels = array( 'name' => _x( 'Evènements', 'Post Type General Name', 'text_domain' ), 'singular_name' => _x( 'Evènement', 'Post Type Singular Name', 'text_domain' ), 'menu_name' => __( 'Evènement', 'text_domain' ), 'parent_item_colon' => __( 'Evènement Parent:', 'text_domain' ), 'all_items' => __( 'Tous les évènement', 'text_domain' ), 'view_item' => __( 'Voir', 'text_domain' ), 'add_new_item' => __( 'Ajouter un évènement', 'text_domain' ), 'add_new' => __( 'Ajouter', 'text_domain' ), 'edit_item' => __( 'Editer', 'text_domain' ), 'update_item' => __( 'Mettre à jour', 'text_domain' ), 'search_items' => __( 'Rechercher', 'text_domain' ), 'not_found' => __( 'Non trouvé', 'text_domain' ), 'not_found_in_trash' => __( 'Non trouvé dans la corbeille', 'text_domain' ), ); $args = array( 'label' => __( 'evenement', 'text_domain' ), 'description' => __( 'Evénement type concert, showcase, ect...', 'text_domain' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'comments', 'revisions', 'custom-fields', 'page-attributes', ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'menu_position' => 15, 'menu_icon' => '', 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'post', ); register_post_type( 'evenement', $args ); } // Hook into the 'init' action add_action( 'init', 'evenement', 0 ); }