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



wp_cache_decr ›

Desde3.3.0
Obsoleton/a
wp_cache_decr ( $key, $offset = 1, $group = '' )
Parâmetros: (3)
  • (int|string) $key The cache key to decrement.
    Required: Yes
  • (int) $offset Optional. The amount by which to decrement 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::decr()
Retorna:
  • (false|int) False on failure, the item's new value on success.
Definido em:
Codex:

Decrements numeric cache item's value.



Fonte

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

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