bp_get_friendship_requests

  • apply_filters( 'bp_get_friendship_requests', implode( ',', (array) friends_get_friendship_request_user_ids( $bp->loggedin_user->id ) ) )

    Source Reference:

    • Component: BuddyPress :: bp-friends
      File: /bp-friends/bp-friends-template.php :: Trac Source Line: 384
      	if ( empty( $friend_ids ) )
      		return false;
      
      	return implode( ',', friends_get_friend_user_ids( $user_id ) );
      }
      function bp_get_friendship_requests() {
      	global $bp;
      
      	return apply_filters( 'bp_get_friendship_requests', implode( ',', (array) friends_get_friendship_request_user_ids( $bp->loggedin_user->id ) ) );
      }
      
      function bp_friend_friendship_id() {
      	echo bp_get_friend_friendship_id();
      }
      	function bp_get_friend_friendship_id() {
      		global $members_template, $bp;
      
      		if ( !$friendship_id = wp_cache_get( 'friendship_id_' . $members_template->member->id . '_' . $bp->loggedin_user->id ) ) {
      			$friendship_id = friends_get_friendship_id( $members_template->member->id, $bp->loggedin_user->id );
      

Comments are closed.