whitelist_options filter-hook . WP 2.7.0
Deprecated from version 5.5.0. It is no longer supported and can be removed in future releases. See allowed_options.╳
Deprecated: 5.5.0 Use {@see 'allowed_options'} instead.
Filters the allowed options list.
Usage
add_filter( 'whitelist_options', 'filter_function_name_4835', 10, 3 ); function filter_function_name_4835( $allowed_options, $string, $__ ){ // filter... return $allowed_options; }
- $allowed_options(array)
- The allowed options list.
- $string
- -
- $__
- -
Changelog
Since 2.7.0 | Introduced. | |
Deprecated Since 5.5.0 | Use {@see 'allowed_options'} instead. |
Where the hook is called
In file: /wp-admin/options.php
whitelist_options
wp-admin/options.php 210-216
$allowed_options = apply_filters_deprecated( 'whitelist_options', array( $allowed_options ), '5.5.0', 'apply_filters_deprecated', __( 'Please consider writing more inclusive code.' ) );