WordPress at a glance
function is not described

remove_option_whitelist() WP 2.7.0

Removes a list of options from the options whitelist.

  • Global. Array. $whitelist_options

No Hooks.

Return

Array.

Usage

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

Default: ''

Code of remove option whitelist: wp-admin/includes/plugin.php WP 5.2.1

<?php
function remove_option_whitelist( $del_options, $options = '' ) {
	if ( $options == '' ) {
		global $whitelist_options;
	} else {
		$whitelist_options = $options;
	}

	foreach ( $del_options as $page => $keys ) {
		foreach ( $keys as $key ) {
			if ( isset( $whitelist_options[ $page ] ) && is_array( $whitelist_options[ $page ] ) ) {
				$pos = array_search( $key, $whitelist_options[ $page ] );
				if ( $pos !== false ) {
					unset( $whitelist_options[ $page ][ $pos ] );
				}
			}
		}
	}

	return $whitelist_options;
}