wpseek.com
A WordPress-centric search engine for devs and theme authors



add_option_whitelist › WordPress Function

Since2.7.0
Deprecated5.5.0
add_option_whitelist ( $new_options, $options = '' )
Parameters: (2)
  • (array) $new_options
    Required: Yes
  • (string|array) $options
    Required: No
    Default: (empty)
Returns:
  • (array)
Defined at:
Codex:

Adds an array of options to the list of allowed options.



Source

function add_option_whitelist( $new_options, $options = '' ) {
	_deprecated_function( __FUNCTION__, '5.5.0', 'add_allowed_options()' );

	return add_allowed_options( $new_options, $options );
}