add_option_whitelist()
Deprecated since 5.5.0. It is no longer supported and may be removed in future releases. Use
add_allowed_options().
Please consider writing more inclusive code instead.Adds an array of options to the list of allowed options.
No Hooks.
Returns
Array.
Usage
add_option_whitelist( $new_options, $options );
- $new_options(array) (required)
- .
- $options(string|array)
- .
Default: ''
Changelog
| Since 2.7.0 | Introduced. |
| Deprecated since 5.5.0 | Use add_allowed_options() instead. |
add_option_whitelist() add option whitelist code WP 6.8.3
function add_option_whitelist( $new_options, $options = '' ) {
_deprecated_function( __FUNCTION__, '5.5.0', 'add_allowed_options()' );
return add_allowed_options( $new_options, $options );
}