"; echo $before_title . $instance['widget_title'] . $after_title; ?> " . $after_widget; } /** @see WP_Widget::update function that updates the widget */ function update($new_instance, $old_instance) { $instance = $old_instance; // this line must be repeated for each meta value that you create for this widget $instance['widget_title'] = strip_tags($new_instance['widget_title']); return $instance; } } ?>