From 2a752254f079518fd043281ce2cce84e715b5a99 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Wed, 25 Mar 2026 16:00:16 +0100 Subject: [PATCH] FEATURE Update custom post types to 'Notices' and 'Recherches participatives' with revised labels and support for revisions. --- mu-plugins/carhop-post-types.php | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/mu-plugins/carhop-post-types.php b/mu-plugins/carhop-post-types.php index e55cfdc..f46405c 100644 --- a/mu-plugins/carhop-post-types.php +++ b/mu-plugins/carhop-post-types.php @@ -105,7 +105,7 @@ function carhop_create_posttype() 'menu_icon' => 'data:image/svg+xml;base64,' . base64_encode(''), 'menu_position' => 4, 'taxonomies' => array('type', 'etiquettes'), - 'supports' => array('title', 'custom-fields', 'editor', 'thumbnail'), + 'supports' => array('title', 'revisions', 'editor', 'thumbnail'), ) ); register_post_type( @@ -118,7 +118,7 @@ function carhop_create_posttype() ), 'menu_name' => 'Recherches participatives', 'show_in_rest' => true, - 'supports' => array('title', 'custom-fields', 'editor', 'thumbnail'), + 'supports' => array('title', 'revisions', 'editor', 'thumbnail'), 'public' => true, 'has_archive' => true, 'menu_position' => 4, @@ -169,7 +169,7 @@ function carhop_create_posttype() 'rewrite' => array('slug' => 'expositions'), 'menu_icon' => 'data:image/svg+xml;base64,' . base64_encode(''), 'show_in_rest' => true, - 'supports' => array('title', 'custom-fields', 'editor', 'thumbnail'), + 'supports' => array('title', 'revisions', 'editor', 'thumbnail'), 'menu_position' => 4, ) ); @@ -187,7 +187,7 @@ function carhop_create_posttype() 'rewrite' => array('slug' => 'outils-pedagogiques'), 'menu_icon' => 'data:image/svg+xml;base64,' . base64_encode(''), 'show_in_rest' => true, - 'supports' => array('title', 'editor', 'thumbnail'), + 'supports' => array('title', 'revisions', 'editor', 'thumbnail'), 'menu_position' => 4, ) ); @@ -229,8 +229,3 @@ function carhop_create_posttype() ); } add_action('init', 'carhop_create_posttype'); - - - - -