reco_Reporting
// Register Custom Post Type
function reco_reporting() {
$labels = array(
'name' => _x( 'Comptes-Rendu', 'Post Type General Name', 'reco' ),
'singular_name' => _x( 'Compte-Rendu', 'Post Type Singular Name', 'reco' ),
'menu_name' => __( 'Compte Rendu', 'reco' ),
'parent_item_colon' => __( 'Compte rendu suppérieur', 'reco' ),
'all_items' => __( 'Tous les comptes-rendu', 'reco' ),
'view_item' => __( 'Voir', 'reco' ),
'add_new_item' => __( 'Nouveau Compte Rendu', 'reco' ),
'add_new' => __( 'Ajouter', 'reco' ),
'edit_item' => __( 'Modifier', 'reco' ),
'update_item' => __( 'Mettre à jour', 'reco' ),
'search_items' => __( 'Rechercher', 'reco' ),
'not_found' => __( 'Aucun résultat', 'reco' ),
'not_found_in_trash' => __( 'Aucun résultat dans la corbeille', 'reco' ),
);
$args = array(
'label' => __( 'reporting', 'reco' ),
'description' => __( 'Comptes-Rendu de réunion', 'reco' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'revisions', ),
'taxonomies' => array( 'category' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'show_in_nav_menus' => true,
'show_in_admin_bar' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-format-aside',
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'post',
);
register_post_type( 'reporting', $args );
}
// Hook into the 'init' action
add_action( 'init', 'reco_reporting', 0 );