BP_Core_Friends_Widget::set_display_user( $id )

Set Display user_id to loggedin_user_id if someone added the widget on outside bp pages.

Description

Source

File: bp-friends/classes/class-bp-core-friends-widget.php

	public function set_display_user( $id ) {
		if ( ! $id ) {
			$id = bp_loggedin_user_id();
		}
		return $id;
	}

Changelog

Changelog
Version Description
BuddyBoss 1.1.7 Introduced.

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.