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.
Return Return
(bool)
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 ); }
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |