WP_REST_URL_Details_Controller::get_cache
Utility function to retrieve a value from the cache at a given key.
Method of the class: WP_REST_URL_Details_Controller{}
No Hooks.
Returns
Mixed. The value from the cache.
Usage
// private - for code of main (parent) class only $result = $this->get_cache( $key );
- $key(string) (required)
- The cache key.
Changelog
| Since 5.9.0 | Introduced. |
WP_REST_URL_Details_Controller::get_cache() WP REST URL Details Controller::get cache code WP 7.0
private function get_cache( $key ) {
return get_site_transient( $key );
}