wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_cache_incr › WordPress Function

Desde3.3.0
Obsoleton/a
wp_cache_incr ( $key, $offset = 1, $group = '' )
Parâmetros: (3)
  • (int|string) $key The key for the cache contents that should be incremented.
    Required: Yes
  • (int) $offset Optional. The amount by which to increment the item's value. Default 1.
    Required: No
    Padrão: 1
  • (string) $group Optional. The group the key is in. Default empty.
    Required: No
    Padrão: (empty)
Ver:
  • WP_Object_Cache::incr()
Retorna:
  • (int|false) The item's new value on success, false on failure.
Definido em:
Codex:

Increments numeric cache item's value.



Fonte

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

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