Utility function to retrieve a value from the cache at a given key.
Parameters
$key
stringrequired- The cache key.
Source
private function get_cache( $key ) {
return get_site_transient( $key );
}
Changelog
Version | Description |
---|---|
5.9.0 | Introduced. |
This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Utility function to retrieve a value from the cache at a given key.
$key
stringrequiredprivate function get_cache( $key ) {
return get_site_transient( $key );
}
Version | Description |
---|---|
5.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.