acf_pro_get_license_transient()ACF 6.2.6

Returns a license related transient For multisite installs, this is from the network, otherwise from the normal transient function.

Хуков нет.

Возвращает

Разное. the resulting transient value from cache or database.

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

acf_pro_get_license_transient( $transient_name );
$transient_name(строка) (обязательный)
The name of the transient to return.

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

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

Код acf_pro_get_license_transient() ACF 6.4.2

function acf_pro_get_license_transient( $transient_name ) {
	if ( acf_pro_is_legacy_multisite() ) {
		return get_site_transient( $transient_name );
	} else {
		return get_transient( $transient_name );
	}
}