bp_core_get_displayed_userid

Return the ID of a user, based on user_login.

Description

(int) bp_core_get_displayed_userid( (string) $user_login ); 

No longer used.

Returns (int)

Parameters (1)

0. $user_login (string)
User_login of the user being queried.

Usage

  1. if ( !function_exists( 'bp_core_get_displayed_userid' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-members/bp-members-functions.php'; 
  3.  
  4. // user_login of the user being queried. 
  5. $user_login = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_core_get_displayed_userid($user_login); 
  9.  

Defined (1)

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

/bp-members/bp-members-functions.php  
  1. function bp_core_get_displayed_userid( $user_login ) {