Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



expiration_of_transient_{$transient} ›

Seit4.4.0
Veraltetn/v
apply_filters( "expiration_of_transient_{$transient}", $expiration, $value, $transient )
Parameter: (3)
  • (int) $expiration Time until expiration in seconds. Use 0 for no expiration.
    Erforderlich: Ja
  • (mixed) $value New value of transient.
    Erforderlich: Ja
  • (string) $transient Transient name.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

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