bb_has_broken_pass

The BuddyPress bb has broken pass function.

Description

bb_has_broken_pass( (int) $user_id = 0 ); 

Parameters (1)

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

Usage

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

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-pluggable.php  
  1. function bb_has_broken_pass( $user_id = 0 ) { 
  2. global $bb_current_user; 
  3. if ( !$user_id ) 
  4. $user =& $bb_current_user->data; 
  5. else 
  6. $user = bb_get_user( $user_id ); 
  7.  
  8. return ( false !== strpos($user->user_pass, '---' ) );