Summery Summery
Decrements numeric cache item’s value.
Syntax Syntax
Parameters Parameters
- $key
-
(Required) The cache key to decrement.
- $offset
-
(Optional) The amount by which to decrement the item's value.
Default value: 1
- $group
-
(Optional) The group the key is in.
Default value: ''
Return Return
(int|false) The item's new value on success, false on failure.
Source Source
File: wp-includes/cache.php
function wp_cache_decr( $key, $offset = 1, $group = '' ) { global $wp_object_cache; return $wp_object_cache->decr( $key, $offset, $group ); }
Advertisement
Changelog Changelog
Version | Description |
---|---|
3.3.0 | Introduced. |