WP_REST_URL_Details_Controller::get_cache( string $key ): mixed

In this article

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

$keystringrequired
The cache key.

Return

mixed The value from the cache.

Source

private function get_cache( $key ) {
	return get_site_transient( $key );
}

Changelog

VersionDescription
5.9.0Introduced.

User Contributed Notes

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