bp_get_group_member_is_friend()
Get connection status between current member and displayed member in group (pending/connected/not connected).
Description
Return
(mixed|void)
Source
File: bp-groups/bp-groups-template.php
function bp_get_group_member_is_friend() { global $members_template; if ( !isset( $members_template->member->is_friend ) ) { $friend_status = 'not_friends'; } else { $friend_status = ( 0 == $members_template->member->is_friend ) ? 'pending' : 'is_friend'; } /** * Filters the friendship status between current user and displayed user in group member loop. * * @since BuddyPress 1.2.0 * * @param string $friend_status Current status of the friendship. */ return apply_filters( 'bp_get_group_member_is_friend', $friend_status ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.2.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.