WordPress at a glance
function is not described

wp_protect_special_option() WP 2.2.0

Protect WordPress special option from being modified.

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

No Hooks.


Nothing (null).


wp_protect_special_option( $option );
$option(string) (required)
Option name.

Code of wp protect special option: wp-includes/option.php WP 5.2.2

function wp_protect_special_option( $option ) {
	if ( 'alloptions' === $option || 'notoptions' === $option ) {
		wp_die( sprintf( __( '%s is a protected WP option and may not be modified' ), esc_html( $option ) ) );