Core Function
View Source on Trac ↗ wp_cache_incr()
wp_cache_incr( mixed $key, mixed $offset = 1, mixed $group = '' ) Increments numeric cache item's value.
Parameters 2 required
| Name / Type | Description |
|---|---|
| (int | | string) $key The key for the cache contents that should be incremented. Required |
| int | $offset Optional. The amount by which to increment 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