Summery Summery

Protects WordPress special option from being modified.

Syntax Syntax

wp_protect_special_option( string $option )

Description Description

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

Parameters Parameters


(string) (Required) Option name.

Source Source

File: wp-includes/option.php

	 * Filters the value of an existing option.
	 * The dynamic portion of the hook name, `$option`, refers to the option name.
	 * @since 1.5.0 As 'option_' . $setting
	 * @since 3.0.0
	 * @since 4.4.0 The `$option` parameter was added.
	 * @param mixed  $value  Value of the option. If stored serialized, it will be
	 *                       unserialized prior to being returned.


Changelog Changelog

Version Description
2.2.0 Introduced.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.