563functionwp_protect_special_option($option){564if('alloptions'===$option||'notoptions'===$option){565wp_die(566sprintf(567/* translators: %s: Option name. */568__('%s is a protected WP option and may not be modified'),569esc_html($option)570)571);572}573}
History
Introduced in 2.2.0. One change between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
7.1.0
Return type changed from none to void.verified against source
2.2.0
Introduced.from the docblock
About this page
Parsed data
Generated from the wordpress-develop 7.0.4 tag, from src/wp-includes/option.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.