Alert: 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.
WP_REST_URL_Details_Controller::get_cache( string $key ): mixed
Utility function to retrieve a value from the cache at a given key.
Parameters
-
$key
string Required -
The cache key.
Return
mixed The value from the cache.
Source
File: wp-includes/rest-api/endpoints/class-wp-rest-url-details-controller.php
.
View all references
private function get_cache( $key ) {
return get_site_transient( $key );
}
Changelog
Version | Description |
---|---|
5.9.0 | Introduced. |