acf_pro_get_license()ACF 5.4.0

This function will return the license

Хуков нет.

Возвращает

$license. Activated license array

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

acf_pro_get_license();

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

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

Код acf_pro_get_license() ACF 6.0.4

function acf_pro_get_license() {

	// get option
	$license = get_option( 'acf_pro_license' );

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

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

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

	// return
	return $license;

}