wpseek.com
A WordPress-centric search engine for devs and theme authors



expiration_of_site_transient_{$transient} › WordPress Filter Hooks

Since4.4.0
Deprecatedn/a
apply_filters( "expiration_of_site_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 site transient.
    Required: Yes
  • (string) $transient Transient name.
    Required: Yes
Defined at:
Codex:

Filters the expiration for a site 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_site_transient_{$transient}", $expiration, $value, $transient );