- added isset function in acf field centralized handling

- schedule event for order id works
This commit is contained in:
asus
2024-04-08 23:00:38 +02:00
parent 8925611217
commit 272bc07f81
4 changed files with 95 additions and 22 deletions

View File

@@ -148,16 +148,17 @@ function card_date_exists_CIPF($user_id = null) {
*
*/
$date_now = date_create('today');
// we dont use utility fonction 'get_acf_field_CIPF' because we want to know if it was not init. Do we ?
$current_date = get_field($acf_card_expiration['_name'], $acf_id);
if (empty($current_date)) {
return false;
}
if (is_null($current_date)) {
return false;
}
return true;
// // we dont use utility fonction 'get_acf_field_CIPF' because we want to know if it was not init. Do we ?
// $current_date = get_field($acf_card_expiration['_name'], $acf_id);
//
// if (empty($current_date)) {
// return false;
// }
// if (is_null($current_date)) {
// return false;
// }
// return true;
return isset_acf_card_expiration_CIPF($user_id);
}