option_{$option}

过滤钩子


apply_filters( "option_{$option}", maybe_unserialize( $value )
参数
  • (mixed)
    $value
    Value of the option. If stored serialized, it will be
    unserialized prior to being returned.
    Required:
  • (string)
    $option
    Option name.
    Required:
定义位置
  • wp-includes/option.php
    , line 253
引入
4.4.0
弃用

Filters the value of an existing option.

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

return apply_filters( "option_{$option}", maybe_unserialize( $value ), $option );