FEATURE Declaring actualites post-type

This commit is contained in:
Antoine M 2026-02-24 14:49:04 +01:00
parent 2a4fa10fec
commit 49980e322f

View File

@ -44,6 +44,28 @@ function carhop_create_posttype()
)
);
// ------- ACTUALITES ------- //
register_post_type(
'actualites',
// CPT Options
array(
'labels' => array(
'name' => __('Actualités'),
'singular_name' => __('Actualité'),
),
'public' => true,
'has_archive' => true,
'rewrite' => array('slug' => 'actualites'),
'show_in_rest' => true,
'menu_icon' => 'dashicons-admin-post',
'menu_position' => 4,
'supports' => array('title', 'editor', 'thumbnail'),
'taxonomies' => array('etiquettes'),
)
);
// -------DBMOB------- //
register_post_type(