AnsPress_Stats_Widget::update( array $new_instance, array $old_instance )
Description #
Sanitize widget form values as they are saved.
Parameters #
- $new_instancearray (Required) Values just sent to be saved.
- $old_instancearray (Required) Previously saved values from database.
Source #
File: widgets/question_stats.php
public function update( $new_instance, $old_instance ) { $instance = array(); $instance['title'] = ( ! empty( $new_instance['title'] ) ) ? wp_strip_all_tags( $new_instance['title'] ) : ''; return $instance; }
Expand full source code Collapse full source code View on GitHub: widgets/question_stats.php:135
Add your comment