質問: wp_parse_args( (array) $instance, $defaults); ?> 任意の助けは大歓迎です!
回答: 私はします:function update($new_instance, $old_instance) { ... $instance['show_photostream'] = $new_instance['show_photostream']; return $instance; } function form($instance) { $defaults = array ( ... 'show_photostream' => !empty( $instance['show_photostream'] ) ? $instance['show_photostream'] : false ); $instance = wp_parse_args( (array) $instance, $defaults);