acf_pro_is_license_expired()
Checks if the current license is expired.
Хуков нет.
Возвращает
true|false. True if expired, false if not.
Использование
acf_pro_is_license_expired( $status );
- $status(массив)
- Optional license status array.
По умолчанию:array()
Список изменений
| С версии 6.2.2 | Введена. |
Код acf_pro_is_license_expired() acf pro is license expired ACF 6.4.2
function acf_pro_is_license_expired( $status = array() ) {
if ( empty( $status ) ) {
$status = acf_pro_get_license_status();
}
if ( acf_pro_was_license_refunded( $status ) ) {
return false;
}
return in_array( $status['status'], array( 'expired', 'cancelled' ), true );
}