Retrieves the cache contents from the cache by key and group.
$keyint|stringrequired
$groupstringoptional
Default:''
$forcebooloptional
Default:false
$foundbooloptional
Default:null
function wp_cache_get( $key, $group = '', $force = false, &$found = null ) {
global $wp_object_cache;
return $wp_object_cache->get( $key, $group, $force, $found );
}
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_cache_get