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



pre_set_transient_{$transient} ›

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

Filters a specific transient before its value is set.

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





Fonte

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