acf_pro_get_license_transient()
Returns a license related transient For multisite installs, this is from the network, otherwise from the normal transient function.
No Hooks.
Returns
Mixed. the resulting transient value from cache or database.
Usage
acf_pro_get_license_transient( $transient_name );
- $transient_name(string) (required)
- The name of the transient to return.
Changelog
| Since 6.2.6 | Introduced. |
acf_pro_get_license_transient() acf pro get license transient code ACF 6.8.8
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 );
}
}