AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

[Solved] Would like custom redirect after Forgot Your Password page

3 Posts
2 Users
0 Reactions
809 Views
Posts: 15
 Max7
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@max7)
Eminent Member
Joined: 2 years ago
[#62255]

Some people don't pay attention to the pop-up that an email was sent after they submit the reset password page. I've created a page on my site that only says "Email Sent - Please click the link in the email to set your password" so it's very clear to them. I have put that url in the Custom Redirection URL after registration field and it works great for after a new Registration. But it's not redirecting to my url after an email is sent after they click Reset Password on the /change-password/ page. Is there any function I could add to custom redirect after that page?


2 Replies
Sofy
Posts: 5774
 Sofy
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@sofy)
Support Team
Joined: 8 years ago

Hi,

Please use the hook code below: 

add_filter( 'wpforo_login_url', function( $login_url ) {
    if( strpos( wp_debug_backtrace_summary(), "wpforo\classes\Actions->lostpassword, wpforo_login_url, apply_filters('wpforo_login_url')," ) !== false ){
        $login_url = ' https://example.com ';
    }
    
    return $login_url;
} );

Please change the red-marked value as you like. 

Instruction on How to Easily Add Custom Code in WordPress (Without Breaking Your Site): https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/


1 Reply
 Max7
(@max7)
Joined: 2 years ago

Eminent Member
Posts: 15
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@sofy thank you! It works perfectly.


Share: