diff --git a/mu-plugins/carhop-post-types.php b/mu-plugins/carhop-post-types.php
index c4c80aa..8aa7cac 100644
--- a/mu-plugins/carhop-post-types.php
+++ b/mu-plugins/carhop-post-types.php
@@ -13,7 +13,6 @@
--------------------------------------------------*/
function carhop_create_posttype()
{
-
$current_site = get_current_blog_id();
if ($current_site !== 1) return;
@@ -109,6 +108,28 @@ function carhop_create_posttype()
'supports' => array('title', 'revisions', 'editor', 'thumbnail'),
)
);
+
+ // -------Fonds d'archives------- //
+
+ register_post_type(
+ 'fonds-archives',
+ // CPT Options
+ array(
+ 'labels' => array(
+ 'name' => __('Inventaires'),
+ 'singular_name' => __('Inventaire'),
+ 'menu_name' => 'Fonds d\'archives',
+ ),
+ 'public' => true,
+ 'has_archive' => true,
+ 'rewrite' => array('slug' => 'fonds-archives'),
+ 'show_in_rest' => true,
+ 'menu_icon' => 'data:image/svg+xml;base64,' . base64_encode(''),
+ 'menu_position' => 4,
+
+ 'supports' => array('title', 'revisions', 'thumbnail'),
+ )
+ );
register_post_type(
'recherches',
// CPT Options
@@ -206,7 +227,7 @@ function carhop_create_posttype()
'rewrite' => array('slug' => 'archives-presse'),
'menu_icon' => 'data:image/svg+xml;base64,' . base64_encode(''),
'show_in_rest' => true,
- 'supports' => array('title','thumbnail'),
+ 'supports' => array('title', 'thumbnail'),
'show_in_menu' => 'carhop-presse',
'menu_position' => 4,
)