Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_protect_special_option ›

Desde2.2.0
Obsoleton/a
wp_protect_special_option ( $option )
Parâmetros:
  • (string) $option Option name.
    Required: Yes
Definido em:
Codex:

Protect WordPress special option from being modified.

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



Fonte

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 ) ) );
}