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



expiration_of_transient_{$transient} ›

Since4.4.0
已弃用n/a
apply_filters( "expiration_of_transient_{$transient}", $expiration, $value, $transient )
参数: (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
定义在:
文档:

Filters the expiration for a transient before its value is set.

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





源码

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