Contents

BP_Core_Follow_Follower_Widget::update( $new_instance,  $old_instance )

Callback to save widget settings.

Description

Source

File: bp-core/classes/class-bp-core-follow-follower-widget.php

	function update( $new_instance, $old_instance ) {
		$instance              = $old_instance;
		$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.