Definition:
function wp_protect_special_option( $option ) {}
Protect WordPress special option from being modified.
Will die if $option is in protected list. Protected options are ‘alloptions’ and ‘notoptions’ options.
Parameters
- string $option: Option name.
Source code
function wp_protect_special_option( $option ) {
$protected = array( 'alloptions', 'notoptions' );
if ( in_array( $option, $protected ) )
wp_die( sprintf( __( '%s is a protected WP option and may not be modified' ), esc_html( $option ) ) );
}
4005

February 12, 2011 


No comments yet... Be the first to leave a reply!