BP_Xprofile_Profile_Completion_Widget::update( $new_instance, $old_instance )
Callback to save widget settings.
Description
Source
File: bp-xprofile/classes/class-bp-xprofile-profile-completion-widget.php
function update( $new_instance, $old_instance ) { $instance = $old_instance; $instance['title'] = wp_strip_all_tags( $new_instance['title'] ); $instance['profile_groups_enabled'] = $new_instance['profile_groups_enabled']; $instance['profile_photos_enabled'] = $new_instance['profile_photos_enabled']; $instance['profile_hide_widget'] = $new_instance['profile_hide_widget']; // Delete Transient. $this->delete_pc_transient(); /** * Fires when updating widget form settings. * * @since BuddyBoss 1.2.5 */ return apply_filters( 'xprofile_profile_completion_form_update', $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.