bb_get_user_by_name

The BuddyPress bb get user by name function.

Description

bb_get_user_by_name( (string) $name ); 

Parameters (1)

0. $name (string)
The name.

Usage

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

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-deprecated.php  
  1. function bb_get_user_by_name( $name ) { 
  2. bb_log_deprecated('function', __FUNCTION__, 'bb_get_user'); 
  3. return bb_get_user( $name, array( 'by' => 'login' ) );