bp_get_add_friend_button

  • apply_filters( 'bp_get_add_friend_button', $button ) )

    Source Reference:

    • Component: BuddyPress :: bp-friends
      File: /bp-friends/bp-friends-template.php :: Trac Source Line: 365
      					'link_title'        => __( 'Add Friend', 'buddypress' ),
      					'link_id'           => 'friend-' . $potential_friend_id,
      					'link_rel'          => 'add',
      					'link_class'        => 'friendship-button not_friends add'
      				);
      				break;
      		}
      
      		// Filter and return the HTML button
      		return bp_get_button( apply_filters( 'bp_get_add_friend_button', $button ) );
      	}
      
      function bp_get_friend_ids( $user_id = 0 ) {
      	global $bp;
      
      	if ( !$user_id )
      		$user_id = ( $bp->displayed_user->id ) ? $bp->displayed_user->id : $bp->loggedin_user->id;
      
      	$friend_ids = friends_get_friend_user_ids( $user_id );
      

Comments are closed.