From a15dabfa857650aa6f02ef72d5f5773a7036ef64 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Mon, 8 Jul 2024 16:37:23 +0200 Subject: [PATCH] handling revisions for conseils and questions --- includes/post_types.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/post_types.php b/includes/post_types.php index 5463aa7..b934f5b 100644 --- a/includes/post_types.php +++ b/includes/post_types.php @@ -62,7 +62,8 @@ function create_posttype() 'show_in_rest' => true, 'menu_icon' => 'dashicons-pressthis', 'menu_position' => 2, - 'supports' => array('title', 'editor', 'page-attributes', 'thumbnail', 'revision'), + 'supports' => array('title', 'editor', 'page-attributes', 'thumbnail', 'revisions'), + // 'supports' => array('title', 'custom-fields', 'editor'), ) ); @@ -99,7 +100,7 @@ function create_posttype() 'show_in_rest' => true, 'menu_icon' => 'dashicons-editor-help', 'menu_position' => 2.1, - 'supports' => array('title', 'custom-fields', 'editor', 'excerpt', 'revision'), + 'supports' => array('title', 'custom-fields', 'editor', 'excerpt', 'revisions'), // 'rewrite' => array('slug' => 'questions'), // 'rewrite' => array('slug' => 'questions/%thematiques%'),