Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_protect_special_option ›

Da2.2.0
Deprecaton/a
wp_protect_special_option ( $option )
Parametri:
  • (string) $option Option name.
    Richiesto:
Definito a:
Codex:

Protect WordPress special option from being modified.

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



Sorgenti

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