bb_random_pass

The BuddyPress bb random pass function.

Description

bb_random_pass( $length ); 

Parameters (1)

0. $length
The length.

Usage

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

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-deprecated.php  
  1. function bb_random_pass( $length ) { 
  2. bb_log_deprecated('function', __FUNCTION__, 'bb_generate_password'); 
  3. if ( 12 < (int) $length ) { 
  4. $length = 12; 
  5. return bb_generate_password( $length );