wip i broke everyhting :p

This commit is contained in:
asus
2024-03-14 13:10:05 +01:00
parent 76f2e8ba00
commit e14acfb739
7 changed files with 18 additions and 121 deletions

View File

@@ -34,18 +34,8 @@ function renew_page_restrictions_CIPF(){
wp_reset_query();
$slug = get_post_field( 'post_name', get_post() );
error_log("slug");
error_log($slug);
// error_log("request");
// error_log(json_encode($_REQUEST));
// error_log("server");
// error_log(json_encode($_SERVER));
if (!is_page('commande'))
return;
PLGNTLS_class::debug_infos();
/*
* is it good ?
@@ -110,15 +100,8 @@ function renew_page_filter_message_CIPF(){
$slug_renew_card = PLGNTLS_class::SLUG_RENEW_CARD;
$acf_card_state = PLGNTLS_class::ACF_CARD_STATE;
$slug = get_post_field( 'post_name', get_post() );
error_log("slug");
error_log($slug);
/*
if (!is_page($slug_renew_card))
return;
*/
PLGNTLS_class::debug_infos();
$user_id = get_current_user_id();
$acf_id = 'user_'.$user_id;