Filters the allowed options list.
Parameters
$allowed_options
array- The allowed options list.
Source
$allowed_options = apply_filters_deprecated(
'whitelist_options',
array( $allowed_options ),
'5.5.0',
'allowed_options',
__( 'Please consider writing more inclusive code.' )
);
Changelog
Version | Description |
---|---|
5.5.0 | Use 'allowed_options' instead. |
2.7.0 | Introduced. |
Example how to add whitelist_options.