Function: wp_protect_special_option

wp_protect_special_option( string $option )

Protect WordPress special option from being modified.

Shortcut: wpso

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.

Will die if $option is in protected list. Protected options are 'alloptions' and 'notoptions' options.

Parameters

Name Type(s) Default Value Description
$option string

Option name.

WordPress Developer Newsletter

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