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



expiration_of_transient_{$transient} ›

Desde4.4.0
Obsoleton/a
apply_filters( "expiration_of_transient_{$transient}", $expiration, $value, $transient )
Parâmetros: (3)
  • (int) $expiration Time until expiration in seconds. Use 0 for no expiration.
    Required: Yes
  • (mixed) $value New value of transient.
    Required: Yes
  • (string) $transient Transient name.
    Required: Yes
Definido em:
Codex:

Filters the expiration for a transient before its value is set.

The dynamic portion of the hook name, $transient, refers to the transient name.





Fonte

$expiration = apply_filters( "expiration_of_transient_{$transient}", $expiration, $value, $transient );