WP_Object_Cache::incr

SummerySummery

Increments numeric cache item’s value.

Syntax

WP_Object_Cache::incr( int|string $key, int $offset = 1, string $group = 'default' )

ParametersParameters

$key

(int|string) (Required) The cache key to increment

$offset

(int) (Optional) The amount by which to increment the item's value.

Default value: 1

$group

(string) (Optional) The group the key is in.

Default value: 'default'

ReturnReturn

(int|false) The item's new value on success, false on failure.

SourceSource

File: wp-includes/class-wp-object-cache.php


			

ChangelogChangelog

Changelog
Version Description
3.3.0 Introduced.
Scroll to Top