Warning: This function has been deprecated. Use remove_allowed_options() instead. Please consider writing more inclusive code.
remove_option_whitelist() WordPress Function
The remove_option_whitelist() function is used to remove options from the list of options that are safe to update via the Settings API.
remove_option_whitelist( array $del_options, string|array $options = '' ) #
Removes a list of options from the allowed options list.
Parameters
- $del_options
(array)(Required)
- $options
(string|array)(Optional)
Default value: ''
Return
(array)
Source
File: wp-includes/deprecated.php
function remove_option_whitelist( $del_options, $options = '' ) { _deprecated_function( __FUNCTION__, '5.5.0', 'remove_allowed_options()' ); return remove_allowed_options( $del_options, $options ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.5.0 | Use remove_allowed_options() instead. Please consider writing more inclusive code. |
2.7.0 | Introduced. |