How to save widget fields generated from an array?
OK, so I’ve done some debugging and I know where your problem lies… First of all in update function: public function update( $new_instance, $old_instance ) { $instance = $old_instance; if ( empty( $this->fields ) ) { return $instance; } $instance = $this->save_fields( $new_instance, $old_instance ); return $instance; } You shouldn’t use $old_instance as starting point. … Read more