pre_update_site_option_{$option}

过滤钩子


apply_filters( "pre_update_site_option_{$option}", $value, $old_value, $option, $network_id )
参数
  • (mixed)
    $value
    New value of the network option.
    Required:
  • (mixed)
    $old_value
    Old value of the network option.
    Required:
  • (string)
    $option
    Option name.
    Required:
  • (int)
    $network_id
    ID of the network.
    Required:
定义位置
  • wp-includes/option.php
    , line 1784
引入
4.7.0
弃用

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