From cb591334a4fafae25a53c012745d0f7877a1b510 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Thu, 30 Jan 2025 10:37:43 +0100 Subject: [PATCH] tweaking post type portfolio --- includes/post-types.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/includes/post-types.php b/includes/post-types.php index 149942a..24bdab7 100644 --- a/includes/post-types.php +++ b/includes/post-types.php @@ -32,8 +32,14 @@ function cpt_customer() 'menu_icon' => 'dashicons-forms', 'show_ui' => true, 'hierarchical' => false, - 'supports' => array('title', 'thumbnail') + 'supports' => array('title', 'thumbnail', 'editor', 'excerpt', 'custom-fields', 'revisions', 'page-attributes'), + 'show_in_rest' => true, // Active l'éditeur de blocs (Gutenberg). + ) ); } add_action('init', 'cpt_customer'); + +function my_custom_post_type() {} + +add_action('init', 'my_custom_post_type');