W3cubDocs

/WordPress

apply_filters_deprecated( ‘whitelist_options’, array $allowed_options )

Filters the allowed options list.

Parameters

$allowed_optionsarray
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.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/whitelist_options