bb_check_password

The BuddyPress bb check password function.

Description

bb_check_password( $password, $hash, (string) $user_id = '' ); 

Parameters (3)

0. $password
The password.
1. $hash
The hash.
2. $user_id — Optional. (string) => ''
The user id.

Usage

  1. if ( !function_exists( 'bb_check_password' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-pluggable.php'; 
  3.  
  4. // The password. 
  5. $password = null; 
  6.  
  7. // The hash. 
  8. $hash = null; 
  9.  
  10. // The user id. 
  11. $user_id = ''; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = bb_check_password($password, $hash, $user_id); 
  15.  

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-pluggable.php  
  1. function bb_check_password( $password, $hash, $user_id = '' ) { 
  2. return WP_Pass::check_password( $password, $hash, $user_id );