add_option_whitelist

函数


add_option_whitelist ( $new_options, $options = '' )
参数
  • (array)
    $new_options
    Required:
  • (string|array)
    $options
    Required:
    Default: (empty)
返回值
  • (array)
定义位置
  • wp-includes/deprecated.php
    , line 4069
引入
2.7.0
弃用
5.5.0

Adds an array of options to the list of allowed options.

function add_option_whitelist( $new_options, $options = '' ) {
	_deprecated_function( __FUNCTION__, '5.5.0', 'add_allowed_options()' );

	return add_allowed_options( $new_options, $options );
}