add_option_whitelist( array $new_options, string|array $options =  ): array

This function has been deprecated. Use add_allowed_options() instead. Please consider writing more inclusive code.

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

Parameters

$new_optionsarrayrequired
$optionsstring|arrayoptional

Default:''

Return

array

Source

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

	return add_allowed_options( $new_options, $options );
}

Changelog

VersionDescription
5.5.0Use add_allowed_options() instead.
Please consider writing more inclusive code.
2.7.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.