tweaking post type portfolio
This commit is contained in:
parent
a384bb2e0c
commit
cb591334a4
|
|
@ -32,8 +32,14 @@ function cpt_customer()
|
||||||
'menu_icon' => 'dashicons-forms',
|
'menu_icon' => 'dashicons-forms',
|
||||||
'show_ui' => true,
|
'show_ui' => true,
|
||||||
'hierarchical' => false,
|
'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');
|
add_action('init', 'cpt_customer');
|
||||||
|
|
||||||
|
function my_custom_post_type() {}
|
||||||
|
|
||||||
|
add_action('init', 'my_custom_post_type');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user