/** * Hook the update process. * * @return array * @author Huu Ha <*****@*****.**> */ public function update($new_instance, $old_instance) { // echo '<pre>'; // print_r($new_instance); // print_r($old_instance); // print_r($this->fields); // echo '</pre>'; // die; return WPLB_Widgets::update_instance($new_instance, $old_instance, $this->fields); }