created functions to handle all state changes

This commit is contained in:
asus
2024-03-19 12:37:16 +01:00
parent f221e43807
commit 5010b70d79
7 changed files with 317 additions and 97 deletions

View File

@@ -126,7 +126,11 @@ function is_card_date_expired_CIPF($user_id = null) {
/*
* will add card_duration to card
* card_duration is expected in a string format : https://www.php.net/manual/en/class.dateinterval.php
*
*/
function update_card_expiration_CIPF($user_id = null, $card_duration = '0') {
PLGNTLS_class::debug_infos();
$acf_card_expiration = PLGNTLS_class::ACF_CARD_EXPIRATION;