acf_pro_update_license_status()
Updates the ACF PRO license status.
Хуков нет.
Возвращает
true|false. True if the value was set, false otherwise.
Использование
acf_pro_update_license_status( $status );
- $status(массив) (обязательный)
- The current license status.
Список изменений
| С версии 6.2.2 | Введена. |
Код acf_pro_update_license_status() acf pro update license status ACF 6.4.2
function acf_pro_update_license_status( $status ) {
$status = acf_pro_parse_license_status( $status );
$store = acf_get_store( 'acf_pro_license_status' );
$store->set( $status );
return acf_pro_update_license_option(
'acf_pro_license_status',
$status,
true
);
}