From aefa66cb374e0887eb0929099e6888c6eaf5764e Mon Sep 17 00:00:00 2001 From: Antoine M Date: Thu, 24 Oct 2024 10:39:11 +0200 Subject: [PATCH] post type chantiers --- includes/post_types.php | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/includes/post_types.php b/includes/post_types.php index 245800c..2f01f6b 100644 --- a/includes/post_types.php +++ b/includes/post_types.php @@ -10,7 +10,7 @@ function metiers_patrimoine_create_posttype() { - // **** VOCABULAIRE + // **** ARTISANS register_post_type( 'artisans', array( @@ -29,6 +29,24 @@ function metiers_patrimoine_create_posttype() 'supports' => array('title', 'custom-fields', 'thumbnail'), ) ); + // **** VOCABULAIRE + register_post_type( + 'chantiers', + array( + 'labels' => array( + 'name' => __('Chantiers', 'metiers-patrimoine-theme'), + 'singular_name' => __('Chantier', 'metiers-patrimoine-theme') + ), + 'public' => true, + 'has_archive' => true, + 'show_in_rest' => true, + 'menu_icon' => 'dashicons-hammer', + + + 'menu_position' => 5.1, + 'supports' => array('title', 'custom-fields', 'thumbnail', 'author', 'revisions'), + ) + ); } add_action('init', 'metiers_patrimoine_create_posttype');