Here below is the workable method for the purpose of trying bbpress. To hide the mail() function code and then add a echo() to show the password on-screen. Like below…
(registration-functions.php)
echo (‘Your Password:’ . “$pass”);
/*
mail( bb_get_user_email( $user->ID ), bb_get_option(‘name’) . ‘: ‘ . __(‘Password’),
sprintf( $message, “$user->user_login”, “$pass”, bb_get_option(‘uri’) ),
‘From: ‘ . bb_get_option(‘admin_email’)
*/