BP_REST_Members_Details_Endpoint::bp_rest_get_displayed_user( int $user_id )

Set current and display user with current user.

Description

Parameters

$user_id

(Required) The user id.

Return

(int)

Source

File: bp-members/classes/class-bp-rest-members-details-endpoint.php

	public function bp_rest_get_displayed_user( $user_id ) {
		return ( ! empty( $this->user_id ) ? $this->user_id : bp_loggedin_user_id() );
	}

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.