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



pre_set_transient_{$transient} › WordPress Filter Hooks

Since4.4.0
Deprecatedn/a
apply_filters( "pre_set_transient_{$transient}", $value, $expiration, $transient )
Parameters: (3)
  • () value New value of transient.
    Required: Yes
  • () expiration Time until expiration in seconds.
    Required: Yes
  • () transient Transient name.
    Required: Yes
Defined at:
Codex:

Filters a specific transient before its value is set.

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




Source

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