tweaking post type portfolio

This commit is contained in:
Antoine M 2025-01-30 10:37:43 +01:00
parent a384bb2e0c
commit cb591334a4

View File

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