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');