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



set_transient_{$transient} ›

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

Fires after the value for a specific transient has been set.

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





源码

do_action( "set_transient_{$transient}", $value, $expiration, $transient );