Core Function
View Source on Trac ↗ wp_cache_decr()
wp_cache_decr( mixed $key, mixed $offset = 1, mixed $group = '' ) Decrements numeric cache item's value.
Parameters 2 required
| Name / Type | Description |
|---|---|
| (int | | string) $key The cache key to decrement. Required |
| int | $offset Optional. The amount by which to decrement the item's value. Default 1. Required |
| $group string | Optional. The group the key is in. Default empty. |
Return Value
((int)
| false) The item's new value on success, false on failure.
Function Information
Since Version
3.3.0
Source File
wp-includes/cache.php
Advertisement