From 85b4c7f16b52b93536895406b957194958459aa8 Mon Sep 17 00:00:00 2001 From: Pascal Martineau Date: Mon, 15 Sep 2025 12:58:45 -0400 Subject: [PATCH] minor: membre public --- wp-content/themes/ccat/includes/cpt/contributor.php | 7 ++----- wp-content/themes/ccat/includes/cpt/membership.php | 8 ++++++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/wp-content/themes/ccat/includes/cpt/contributor.php b/wp-content/themes/ccat/includes/cpt/contributor.php index a31c6fc..33cc1ee 100644 --- a/wp-content/themes/ccat/includes/cpt/contributor.php +++ b/wp-content/themes/ccat/includes/cpt/contributor.php @@ -38,16 +38,13 @@ function ccat_contributor_register_post_type() { 'item_scheduled' => __( "Contributor scheduled.", 'ccat' ), 'item_updated' => __( "Contributor updated.", 'ccat' ), ), - 'public' => true, + 'public' => false, 'hierarchical' => true, 'show_ui' => true, 'show_in_nav_menus' => false, 'supports' => array( 'title', 'thumbnail', 'author', 'excerpt', 'revisions' ), 'has_archive' => false, - 'rewrite' => array( - 'slug' => 'membre', - 'with_front' => false, - ), + 'rewrite' => false, 'query_var' => true, 'menu_icon' => 'dashicons-art', 'show_in_rest' => true, diff --git a/wp-content/themes/ccat/includes/cpt/membership.php b/wp-content/themes/ccat/includes/cpt/membership.php index a91a169..3661a0e 100644 --- a/wp-content/themes/ccat/includes/cpt/membership.php +++ b/wp-content/themes/ccat/includes/cpt/membership.php @@ -38,13 +38,17 @@ function ccat_membership_register_post_type() { 'item_scheduled' => __( "Membership scheduled.", 'ccat' ), 'item_updated' => __( "Membership updated.", 'ccat' ), ), - 'public' => false, + 'public' => true, 'hierarchical' => false, 'show_ui' => true, 'show_in_nav_menus' => false, 'supports' => array( 'title', 'thumbnail', 'author', 'revisions' ), 'has_archive' => false, - 'rewrite' => false, + 'rewrite' => array( + 'slug' => 'membre', + 'with_front' => false, + + ), 'query_var' => true, 'menu_icon' => 'dashicons-id', 'show_in_rest' => true,