transient_{$transient}

过滤钩子


apply_filters( "transient_{$transient}", $value, $transient )
参数
  • (mixed)
    $value
    Value of transient.
    Required:
  • (string)
    $transient
    Transient name.
    Required:
定义位置
  • wp-includes/option.php
    , line 910
引入
4.4.0
弃用

Filters an existing transient’s value.

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

return apply_filters( "transient_{$transient}", $value, $transient );