How To Prevent The Redirection Of Lost Password To Lifter LMS’s Lost Password Page

LoginPress is one of the best WordPress login page customizer plugins that let you customize the default login page of WordPress. It predominantly focuses on rebranding your login page with just a few clicks without touching a single line of code.

Suppose you use LoginPress with Lifter LMS for a customized login page. When users click the "Lost your password" link, they will be taken to the Lifter LMS lost password page, Instead of the customized LoginPress form. This can hurt the user’s experience. 

This knowledge base article will discuss how to prevent the redirection of lost password to Lifter LMS's lost password page.

Let’s get started!

Prevent The Redirection Of Lost Password To Lifter LMS’s Lost Password Page While Using LoginPress

The Lifter LMS lost password page is where users can reset their passwords. This page is typically accessed by clicking a "Lost your password" link on the Lifter LMS login form.

Suppose you’ve customized the login form with LoginPress. When you use LoginPress with Lifter LMS and click the "Lost your password" link, you’ll be taken to the Lifter LMS lost password page. 

Add the Snippet in the Theme’s functions.php File

When using LoginPress, you can easily prevent the redirection of the lost password link to the Lifter LMS's lost password page. All you need to do is to update the code of your website theme's functions.php file (provided below in this documentation).

Note: It’s recommended to use a child theme to edit the functions.php file instead of the parent theme. There are chances to lose the modified code when you update your theme. It might cause some adverse effects on your website.

To do this, go to the left sidebar of your WordPress admin dashboard, navigate to Appearance, and click the Theme File Editor option.

Theme File Editor

On the next screen, click the Theme Functions on the right-hand side. Scroll down to the bottom of the functions.php file and add the following code:

/**
 * Function to prevent the redirection of lost password to Lifter LMS’s lost password page
 * [ true = default lost password form ]
 * [ false = lifterLMS lost password form ]
 *
 * @return bool
 *
 */
 function lifter_change_lostpsw_url() {
   return true;
}
 add_filter('loginpress_llms_lostpassword_url', 'lifter_change_lostpsw_url' );

Once you’ve added the code, click the Update File button at the bottom of the screen to save your changes.

Functions.php File

If you now click the "Lost your password" link on the login form, you’ll be on the default WordPress lost password page instead of redirecting to the Lifter LMS lost password page. 

That’s it! We hope you understand how to prevent the redirection of lost passwords to Lifter LMS's lost password page. 

Let us know how much this knowledge base helped you! 
If you have any doubts or questions related to this matter, please don't hesitate to contact our support team.

Still stuck? How can we help?

Updated on May 27, 2023

Documentation
LoginPress Support
triangular shape yellowish icon

Frequently Asked Questions (FAQs)

These FAQs answer the most common questions about our WordPress custom login page plugin.

three shapes icon

Where can I get support for LoginPress?

If you need help with LoginPress, you can contact us here. We’ll be happy to answer any questions about the plugin.

Do you have an affiliate program?

Yes, we have an affiliate program that you can sign up for here. As an affiliate, you’ll earn a commission on every sale you refer to us.

Do you offer refunds?

Yes, we offer a 14-day money-back guarantee on all of our plans. If you’re unsatisfied with LoginPress, simply contact us within 14 days of your purchase, and we’ll process a refund.

Can I upgrade my license after my initial purchase?

Yes, you can upgrade your LoginPress license at any time. Simply log into your account and go to the My Downloads page. From here, you can upgrade your license and download the latest version of the plugin.

Will LoginPress slow down my website?

No, LoginPress will not slow down your website. The plugin is lightweight and only loads the necessary files when someone tries to access your login page.

three shapes icon

If you Still have Questions?

Get In Touch