bb_get_user_email

The BuddyPress bb get user email function.

Description

bb_get_user_email( $id ); 

Parameters (1)

0. $id
The id.

Usage

  1. if ( !function_exists( 'bb_get_user_email' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-template.php'; 
  3.  
  4. // The id. 
  5. $id = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bb_get_user_email($id); 
  9.  

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-template.php  
  1. function bb_get_user_email( $id ) { 
  2. if ( !$user = bb_get_user( bb_get_user_id( $id ) ) ) 
  3. return false; 
  4.  
  5. return apply_filters( 'bb_get_user_email', $user->user_email, $id );