関数 wp_protect_special_option()
定義ファイル :/blog/wp-includes/option.php 1
wp_protect_special_option()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | /** * Protect WordPress special option from being modified. * * Will die if $option is in protected list. Protected options are 'alloptions' * and 'notoptions' options. * * @since 2.2.0 * * @param string $option Option name. */ 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 ) ) ); } |