register_setting_args

过滤钩子


apply_filters( 'register_setting_args', $args, $defaults, $option_group, $option_name )
参数
  • (array)
    $args
    Array of setting registration arguments.
    Required:
  • (array)
    $defaults
    Array of default arguments.
    Required:
  • (string)
    $option_group
    Setting group.
    Required:
  • (string)
    $option_name
    Setting name.
    Required:
定义位置
  • wp-includes/option.php
    , line 2373
引入
4.7.0
弃用

Filters the registration arguments when registering a setting.

$args = apply_filters( 'register_setting_args', $args, $defaults, $option_group, $option_name );