acf_pro_set_license_transient()
Updates a license related transient For multisite installs, this is from the network, otherwise from the normal transient function.
No Hooks.
Returns
Mixed. The result of the set function.
Usage
acf_pro_set_license_transient( $name, $value );
- $name(string) (required)
- The name of the transient to update.
- $value(mixed) (required)
- The new value of the transient.
Changelog
| Since 6.2.6 | Introduced. |
acf_pro_set_license_transient() acf pro set license transient code ACF 6.8.8
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 );
}
}