Function: add_option_whitelist

add_option_whitelist( array $new_options, string | array $options )

Adds an array of options to the options whitelist.

Shortcut: aow

You can use above key combination to trigger the associated snippet for this function in the WordPress Snippets for Visual Studio Code extension. You can also use this shortcut to search for this function on this website.


Name Type(s) Default Value Description
$new_options array
$options string | array ''



WordPress Developer Newsletter

Stay informed of new chapter releases, important WordPress API updates and more.