diff --git a/mu-plugins/carhop-post-types.php b/mu-plugins/carhop-post-types.php
index d374c78..bb9f4b4 100644
--- a/mu-plugins/carhop-post-types.php
+++ b/mu-plugins/carhop-post-types.php
@@ -17,24 +17,7 @@ function carhop_create_posttype()
$current_site = get_current_blog_id();
if ($current_site !== 1) return;
- register_post_type(
- 'dbmob',
- // CPT Options
- array(
- 'labels' => array(
- 'name' => __('DBMOB'),
- 'singular_name' => __('DBMOB')
- ),
- 'public' => true,
- 'has_archive' => true,
- 'rewrite' => array('slug' => 'dictionnaire'),
- 'show_in_rest' => true,
- 'menu_icon' => 'data:image/svg+xml;base64,' . base64_encode(''),
- 'menu_position' => 5,
- 'supports' => array('title', 'custom-fields'),
- 'taxonomies' => array('category'),
- )
- );
+
register_post_type(
'equipe',
// CPT Options
@@ -61,6 +44,44 @@ function carhop_create_posttype()
'supports' => array('title', 'custom-fields'),
)
);
+ register_post_type(
+ 'dbmob',
+ // CPT Options
+ array(
+ 'labels' => array(
+ 'name' => __('DBMOB'),
+ 'singular_name' => __('DBMOB'),
+ ),
+ 'public' => true,
+ 'has_archive' => true,
+ 'rewrite' => array('slug' => 'dictionnaire'),
+ 'show_in_rest' => true,
+ 'menu_icon' => 'data:image/svg+xml;base64,' . base64_encode(''),
+ 'menu_position' => 5,
+ 'supports' => array('title', 'custom-fields'),
+ 'taxonomies' => array('category'),
+ )
+ );
+ register_post_type(
+ 'analyses-etudes',
+ // CPT Options
+ array(
+ 'labels' => array(
+ 'name' => __('Analyses et études'),
+ 'singular_name' => __('Analyse ou étude'),
+ 'menu_name' => 'Analyses & Études',
+ ),
+ 'public' => true,
+ 'has_archive' => true,
+ 'rewrite' => array('slug' => 'analyses-etudes'),
+ 'show_in_rest' => true,
+ 'menu_icon' => 'data:image/svg+xml;base64,' . base64_encode(''),
+ // 'menu_icon' => 'data:image/svg+xml;base64,' . base64_encode(''),
+ 'menu_position' => 5,
+ 'supports' => array('title', 'custom-fields'),
+ 'taxonomies' => array('category'),
+ )
+ );
}
add_action('init', 'carhop_create_posttype');