How to Create a WooCommerce Widget
…ate each setting individually. public function update( $new_instance, $old_instance ) { $instance[‘setting1’] = strip_tags( $new_instance[‘setting1’] ); $instance[‘setting2’] = strip_tags( $new_instance[‘setting2’] ); return $instance; } Our shipping plugin will look like this: public function update( $new_instance, $old_instance ) { $instance[‘title’] = strip_tags( $new_instance[‘title’] ); $instance[‘text’] = strip_tags( $new_instance[‘text’] );…