🛍️🛍️

Days
Hours
Minutes
Seconds

💸  [Extended] BFCM Sale! Get up to 50% OFF!

Documentation

How to Change Error Messages in Login Form Widget?

You can change error messages in the Login Form using some filters available in PowerPack’s Login Form widget. These filters are introduced in the PowerPack Addons for Elementor v2.6.1.

You can add the code in your current theme’s functions.php file to change the error message using filters.

Let's discuss the filters one by one.

Change "Incorrect Email" Error Message#

pp_login_form_invalid_email_error - In case, you want to change the error message that appears when the user enters an incorrect email, then you can use this filter. Here's an example for your reference:

function example_callback_user() {
    return 'incorrect email'; // Replace "incorrect email" with the error message you would like to display
}
add_filter( 'pp_login_form_invalid_email_error', 'example_callback_user' );

Change "Incorrect Username" Error Message#

pp_login_form_invalid_username_error - In case, you want to change the error message that appears when the user enters an incorrect username, then you can use this filter. Here's an example for your reference:

function example_callback_user() {
    return 'wrong user'; // Replace "wrong user" with the error message you would like to display
}
add_filter( 'pp_login_form_invalid_username_error', 'example_callback_user' );

Change "Incorrect Password" Error Message#

pp_login_form_incorrect_password_error - In case, you want to change the error message that appears when the user enters an incorrect password, then you can use this filter. Here's an example for your reference:

function example_callback_user() {
    return 'wrong password'; // Replace "wrong password" with the error message you would like to display
}
add_filter( 'pp_login_form_incorrect_password_error', 'example_callback_user' );

Hope this helps!

Feel free to get in touch with us in case of any queries or concerns. 🙂

Not the solution you are looking for?

Please check other articles or open a support ticket.

Download PowerPack Free

Subscribe to receive latest updates, announcements, offers, deals & discounts.