expiration_of_site_transient_{$transient}

过滤钩子


apply_filters( "expiration_of_site_transient_{$transient}", $expiration, $value, $transient )
参数
  • (int)
    $expiration
    Time until expiration in seconds. Use 0 for no expiration.
    Required:
  • (mixed)
    $value
    New value of site transient.
    Required:
  • (string)
    $transient
    Transient name.
    Required:
定义位置
  • wp-includes/option.php
    , line 2033
引入
4.4.0
弃用

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

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

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