- added isset function in acf field centralized handling
- schedule event for order id works
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user