A WordPress-centric search engine for devs and theme authors



expiration_of_transient_{$transient} ›

Since4.4.0
Deprecatedn/a
apply_filters( "expiration_of_transient_{$transient}", $expiration, $value, $transient )
Parameters: (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
Defined at:
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.





Source

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