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.

Top ↑

Return

mixed The value from the cache.


Top ↑

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 );
}


Top ↑

Changelog

Changelog
Version Description
5.9.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.