acf_pro_get_license()ACF 5.4.0

This function will return the license

Хуков нет.

Возвращает

Массив|true|false. $license The ACF PRO license array on success, or false on failure.

Использование

acf_pro_get_license();

Список изменений

С версии 5.4.0 Введена.

Код acf_pro_get_license() ACF 6.4.2

function acf_pro_get_license() {
	// get license data
	$license = acf_pro_get_license_option( 'acf_pro_license' );

	// bail early if no value
	if ( ! $license ) {
		return false;
	}

	// decode
	$license = acf_maybe_unserialize( base64_decode( $license ) );

	// bail early if corrupt
	if ( ! is_array( $license ) ) {
		return false;
	}

	// return
	return $license;
}