wordpress / latest / functions / remove_option_whitelist.html

remove_option_whitelist( array $del_options, string|array $options = '' ): array

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

Removes a list of options from the allowed options list.

Parameters

$del_options array Required
$options string|array Optional

Default: ''

Return

array

Source

File: wp-includes/deprecated.php. View all references

function remove_option_whitelist( $del_options, $options = '' ) {
	_deprecated_function( __FUNCTION__, '5.5.0', 'remove_allowed_options()' );

	return remove_allowed_options( $del_options, $options );
}

Uses

Uses Description

Changelog

Version Description
5.5.0 Use remove_allowed_options() instead.
Please consider writing more inclusive code.
2.7.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/remove_option_whitelist