acf_pro_get_license_key()
acf_pro_get_license_key
This function will return the license key
@type function
Хуков нет.
Возвращает
null
. Ничего.
Использование
acf_pro_get_license_key();
Список изменений
С версии 5.4.0 | Введена. |
Код acf_pro_get_license_key() acf pro get license key ACF 5.10.2
function acf_pro_get_license_key() { // vars $license = acf_pro_get_license(); $home_url = home_url(); // bail early if empty if ( ! $license || ! $license['key'] ) { return false; } // bail early if url has changed if ( acf_strip_protocol( $license['url'] ) !== acf_strip_protocol( $home_url ) ) { return false; } // return return $license['key']; }