Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: BBpress lost password form not showing message

@robin-w

Moderator

yes I agree that would be better

If you know how to add code to your childtheme functions file, then

1. create a page called something like ‘Password Reset’ and put in the content the message you would like to display

Make a note of the url of this

2. Put this code into your functions file

add_action ('bbp_get_wp_login_action', 'rew_lost_pass', 20, 3) ;

function rew_lost_pass ($login_url, $r, $args) {
//bail if this is not a lostpassword
if ($r['action'] != 'lostpassword' ) {
return apply_filters( 'bsp_lost_pass1', $login_url, $r, $args );
}
//so this is lost password so go to lost password login page
$login_url = 'http://mysite.com/password_reset/' ;
//$login_url = $r['context'] ;
return apply_filters( 'bsp_lost_pass2', $login_url, $r, $args );

and change the line

$login_url = 'http://mysite.com/password_reset/' ;

to whatever url you had in 1. above

Skip to toolbar