diff --git a/wp-content/themes/ccat/includes/cpt/contributor.php b/wp-content/themes/ccat/includes/cpt/contributor.php index b236cb0..a31c6fc 100644 --- a/wp-content/themes/ccat/includes/cpt/contributor.php +++ b/wp-content/themes/ccat/includes/cpt/contributor.php @@ -45,7 +45,7 @@ function ccat_contributor_register_post_type() { 'supports' => array( 'title', 'thumbnail', 'author', 'excerpt', 'revisions' ), 'has_archive' => false, 'rewrite' => array( - 'slug' => 'contributeur', + 'slug' => 'membre', 'with_front' => false, ), 'query_var' => true, diff --git a/wp-content/themes/ccat/includes/cpt/membership.php b/wp-content/themes/ccat/includes/cpt/membership.php index 2d9e35b..a91a169 100644 --- a/wp-content/themes/ccat/includes/cpt/membership.php +++ b/wp-content/themes/ccat/includes/cpt/membership.php @@ -38,16 +38,13 @@ function ccat_membership_register_post_type() { 'item_scheduled' => __( "Membership scheduled.", 'ccat' ), 'item_updated' => __( "Membership updated.", 'ccat' ), ), - 'public' => true, + 'public' => false, 'hierarchical' => false, 'show_ui' => true, 'show_in_nav_menus' => false, 'supports' => array( 'title', 'thumbnail', 'author', 'revisions' ), 'has_archive' => false, - 'rewrite' => array( - 'slug' => 'membre', - 'with_front' => false, - ), + 'rewrite' => false, 'query_var' => true, 'menu_icon' => 'dashicons-id', 'show_in_rest' => true,