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



pre_update_site_option_{$option} › WordPress过滤钩子

Since4.7.0
已弃用n/a
apply_filters( "pre_update_site_option_{$option}", $value, $old_value, $option, $network_id )
参数: (4)
  • (mixed) $value New value of the network option.
    Required: Yes
  • (mixed) $old_value Old value of the network option.
    Required: Yes
  • (string) $option Option name.
    Required: Yes
  • (int) $network_id ID of the network.
    Required: Yes
定义在:
文档:

Filters a specific network option before its value is updated.

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





源码

$value = apply_filters( "pre_update_site_option_{$option}", $value, $old_value, $option, $network_id );