wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_cache_incr › WordPress Function

Od3.3.0
Przestarzałyn/a
wp_cache_incr ( $key, $offset = 1, $group = '' )
Parametry: (3)
  • (int|string) $key The key for the cache contents that should be incremented.
    Wymagane: Tak
  • (int) $offset Optional. The amount by which to increment the item's value. Default 1.
    Wymagane: Nie
    Domyślny: 1
  • (string) $group Optional. The group the key is in. Default empty.
    Wymagane: Nie
    Domyślny: (puste)
Zobacz:
  • WP_Object_Cache::incr()
Powrót:
  • (int|false) The item's new value on success, false on failure.
Zdefiniowane na:
Codex:

Increments numeric cache item's value.



Źródło

function wp_cache_incr( $key, $offset = 1, $group = '' ) {
	global $wp_object_cache;

	return $wp_object_cache->incr( $key, $offset, $group );
}