acf_pro_set_license_transient()
Updates a license related transient For multisite installs, this is from the network, otherwise from the normal transient function.
Хуков нет.
Возвращает
Разное. The result of the set function.
Использование
acf_pro_set_license_transient( $name, $value );
- $name(строка) (обязательный)
- The name of the transient to update.
- $value(разное) (обязательный)
- The new value of the transient.
Список изменений
| С версии 6.2.6 | Введена. |
Код acf_pro_set_license_transient() acf pro set license transient ACF 6.4.2
function acf_pro_set_license_transient( $name, $value ) {
if ( acf_pro_is_legacy_multisite() ) {
return set_site_transient( $name, $value );
} else {
return set_transient( $name, $value );
}
}