BP_Messages_Sitewide_Notices_Widget::update( array $new_instance, array $old_instance )
Process the saved settings for the widget.
Description
See also
- WP_Widget::update(): for a description of parameters and return values.
Parameters
- $new_instance
-
(Required) See {@WP_Widget::update()}.
- $old_instance
-
(Required) See {@WP_Widget::update()}.
Return
(array) $instance See {@WP_Widget::update()}.
Source
File: bp-messages/classes/class-bp-messages-sitewide-notices-widget.php
public function update( $new_instance, $old_instance ) { $instance = $old_instance; $instance['title'] = strip_tags( $new_instance['title'] ); return $instance; }
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.