apply_filters( 'um_can_view_profile', $can_view, $user_id ) → {bool}
Filters the marker for user capabilities to view other profile
Parameters:
Name | Type | Description |
---|---|---|
$can_view |
bool | Can view profile marker. |
$user_id |
int | User ID requested from profile page. |
- Since:
- 2.6.10
- Source:
Returns:
Can view profile marker.
- Type
- bool
Example
function my_um_can_view_profile( $can_view, $user_id ) {
$can_view = 5 === $user_id;
return $can_view;
}
add_filter( 'um_can_view_profile', 'my_um_can_view_profile', 10, 2 );