Remove LoginPress Default Error Messages with Hook

LoginPress has a built-in Error Messages feature that displays multiple Error Messages by default, depending on the outcome of the user’s behavior on login, registration, or forget attempts. Let it be the wrong Email Address, Username, or Password.

Let’s suppose you are using LoginPress and do not want to show these LoginPress Default Error Messages on the  Login, Register, and Forget Forms. What would you do?

This knowledgebase article will show you how to remove Default Error Messages from Login, Register, and Forget Forms. 

Removing Default Error Messages from Login, Register, and Forget Forms will be done with coding, so buckle up!

Removal of LoginPress Default Error Messages

If you want to remove the LoginPress Default Error Messages from the Login, Register, and Forget form, add a hook to your theme's functions.php file and update it.

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.

Here is the hook:

function loginpress_display_error_messages_callback( $error ) {
 $error = false;
 return $error;
}
add_filter( 'loginpress_display_custom_errors', 'loginpress_display_error_messages_callback' );

Here $error contains the boolean value for removing LoginPress Default Error Messages: false

All done! Now it’s your turn! Remove the Default LoginPress Error Messages from the Login, Register, and Forget forms.

Let us know how much this knowledgebase article 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 January 3, 2024

Documentation
triangular shape yellowish icon

Frequently Asked Questions (FAQs)

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

after animated element
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
Hurry up!! Limited Time Offer  - Get  20% Off  on LoginPress 
Discount Code: EARLY20 
Special Offer on LoginPress
close-image