WordPress开发者和主题制作者的搜索引擎



pre_set_transient_{$transient} ›

Since4.4.0
已弃用n/a
apply_filters( "pre_set_transient_{$transient}", $value, $expiration, $transient )
参数: (3)
  • (mixed) $value New value of transient.
    Required: Yes
  • (int) $expiration Time until expiration in seconds.
    Required: Yes
  • (string) $transient Transient name.
    Required: Yes
定义在:
文档:

Filters a specific transient before its value is set.

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





源码

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