acf_pro_set_activation_failure_transient()
Set the automatic activation failure transient
Хуков нет.
Возвращает
null. Ничего (null).
Использование
acf_pro_set_activation_failure_transient( $error_text, $license_key );
- $error_text(строка) (обязательный)
- string containing the error text message.
- $license_key(строка) (обязательный)
- the license key that was used during the failed activation.
Список изменений
| С версии 5.11.0 | Введена. |
Код acf_pro_set_activation_failure_transient() acf pro set activation failure transient ACF 6.4.2
function acf_pro_set_activation_failure_transient( $error_text, $license_key ) {
acf_pro_set_license_transient(
'acf_activation_error',
array(
'error' => $error_text,
'license' => $license_key,
),
HOUR_IN_SECONDS
);
}