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



option_{$option} › WordPress过滤钩子

Since4.4.0
已弃用n/a
apply_filters( "option_{$option}", maybe_unserialize( $value )
参数: (2)
  • (mixed) $value Value of the option. If stored serialized, it will be unserialized prior to being returned.
    Required: Yes
  • (string) $option Option name.
    Required: Yes
定义在:
文档:

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 );