On this page
WP_REST_URL_Details_Controller::get_cache( string $key ): mixed
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.
Parameters
$keystring 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 );
}
Related
Uses
| Uses | Description |
|---|---|
| get_site_transient() wp-includes/option.php | Retrieves the value of a site transient. |
Used By
| Used By | Description |
|---|---|
| WP_REST_URL_Details_Controller::parse_url_details() wp-includes/rest-api/endpoints/class-wp-rest-url-details-controller.php | Retrieves the contents of the title tag from the HTML response. |
Changelog
| Version | Description |
|---|---|
| 5.9.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_rest_url_details_controller/get_cache