BP_REST_XProfile_Data_Endpoint::can_see( int $field_user_id )

Can this user see the XProfile data?


Description Description


Parameters Parameters

$field_user_id

(Required) User ID of the field.


Top ↑

Return Return

(bool)


Top ↑

Source 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 );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.