bp_member_add_friend_button

Output the "Add Friend" button in the member loop.

Description

bp_member_add_friend_button(); 

Usage

  1. if ( !function_exists( 'bp_member_add_friend_button' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-friends/bp-friends-template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_member_add_friend_button(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-friends/bp-friends-template.php  
  1. function bp_member_add_friend_button() {