AP_Askform_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) Old widget values.
Source #
File: widgets/ask-form.php
public function update( $new_instance, $old_instance ) { $instance = array(); $instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : ''; return $instance; }
Expand full source code Collapse full source code View on GitHub: widgets/ask-form.php:94
Add your comment