BP_Core_Follow_Following_Widget::update( $new_instance, $old_instance )
Callback to save widget settings.
Description
Source
File: bp-core/classes/class-bp-core-follow-following-widget.php
143 144 145 146 147 148 149 | function update( $new_instance , $old_instance ) { $instance = $old_instance ; $instance [ 'title' ] = strip_tags ( $new_instance [ 'title' ] ); $instance [ 'max_users' ] = (int) $new_instance [ 'max_users' ]; 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.