bp_friend_total_requests_count

Output the total friendship request count for a given user.

Description

bp_friend_total_requests_count( (int) $user_id = 0 ); 

Parameters (1)

0. $user_id — Optional. (int)
The user id.

Usage

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

Defined (1)

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

/bp-friends/bp-friends-template.php  
  1. function bp_friend_total_requests_count( $user_id = 0 ) {