$widget_key) { if($number == '_multiwidget') continue; if(isset($_POST['updateProgressBar'])) { $widget_key['progress'] = $_POST[$pbar_type.'-'.$number.'_progress']; $value[$number]['progress'] = $widget_key['progress']; } if($widget_key['book']) { $activeWidgets[$pbar_type . '-' . $number] = $widget_key; } } if(isset($_POST['updateProgressBar'])) { update_option('widget_' . $pbar_type, $value); } } return $activeWidgets; } public function dashboard_widget_function() { $activeWidgets = $this->readWidgetConfiguration(); ?>
Current progress