BP_REST_XProfile_Data_Endpoint::can_see( int $field_user_id )

Can this user see the XProfile data?

Description

Parameters

$field_user_id

(int) (Required) User ID of the field.

Return

(bool)

Source

File: bp-xprofile/classes/class-bp-rest-xprofile-data-endpoint.php

	protected function can_see( $field_user_id ) {
		return ( bp_current_user_can( 'bp_moderate' ) || bp_loggedin_user_id() === $field_user_id );
	}

Changelog

Changelog
Version Description
0.1.0 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.