pre_update_option_{$option}

过滤钩子


apply_filters( "pre_update_option_{$option}", $value, $old_value, $option )
参数
  • (mixed)
    $value
    The new, unserialized option value.
    Required:
  • (mixed)
    $old_value
    The old option value.
    Required:
  • (string)
    $option
    Option name.
    Required:
定义位置
  • wp-includes/option.php
    , line 463
引入
4.4.0
弃用

Filters a specific option before its value is (maybe) serialized and updated.

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

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