WordPress at a glance
function is not described

remove_option_whitelist() WP 2.7.0

Deprecated from version 5.5.0. It is no longer supported and can be removed in future releases. Use remove_allowed_options(). Please consider writing more inclusive code instead.

Removes a list of options from the allowed options list.

No Hooks.


Array. Null. Nothing.


remove_option_whitelist( $del_options, $options );
$del_options(array) (required)
$options *(string array)*


  • Global. Array. $allowed_options


Since 2.7.0 Introduced.
Deprecated Since 5.5.0 Use remove_allowed_options() instead.
Please consider writing more inclusive code.

Code of remove_option_whitelist() WP 5.7

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

	return remove_allowed_options( $del_options, $options );