Try this on function.php
<?php
add_filter('login_errors', 'custom_login_error_messages');
function custom_login_error_messages($error) {
if (strpos($error, 'Invalid email address') !== false) {
return 'The email address you entered is not valid. Please try again.';
} elseif (strpos($error, 'Lost your password?') !== false) {
return 'Please click the "Forgot Password" link to reset your password.';
}
return 'Login failed. Please check your credentials and try again.';
}
Related Posts:
- wp_enqueue_script was called incorrectly
- Remove type attribute from script and style tags added by WordPress
- How to display error messages using WP_Error class?
- Remove Menu Page Giving Error
- Functions.php reverted to new one
- Why is my Gutenberg block returning an error after initial save?
- Debugging with functions.php
- Warning: : DOMDocument::loadHTML(): Empty string supplied as input in functions.php when adding classes to post images
- Parse error after modifying the template menu [closed]
- help I changed one currency in woocommerce and everything is ruined [closed]
- Need help getting a function to function
- Connecting to a 2nd DB gives me no results when querying
- debugging errors.. how to remedy?
- Functions Error: Impacting Galleries
- Strange error from functions.php files (wp_register_script)
- Show errormessages on wrong username/password on custom loginform?
- Problems with functions.php! Error! [closed]
- Looking for Functions File that doesn’t Exist
- functions.php pharse error on complete new install
- “Conditional query tags do not work before the query is run. Before > then, they always return false. “
- MCAPI.class.php showing some error
- I’m getting invalid taxonomy in init action
- Translation Function missing text-domain [closed]
- What is wrong with functions.php? Fills error log with same error
- Random text changing to weird icons in both admin & front end
- jQuery HoverIntent is not a function
- create submenu page – error function not found or invalid function name
- Why does modifying my functions.php file always result in a server error
- Notice: Use of undefined constant REQUEST_URI – assumed ‘REQUEST_URI’ in ….functions.php on line 73
- Woocommerce – Checkout error message
- How to fix enqueue_styles error for a twenty-seventeen childtheme
- Comment turned Invisible
- Logout redirect via page template without confirmation?
- Convert Image to Webp on upload without plugin
- warning: trying to access array offset on value of type bool ACF field image group
- How to check if a user exists by a given id
- Redeclare a function in a child theme
- How can I programmatically create “child” pages on theme activation?
- Add admin bar link to edit author
- How to include one class/instance without using global variables
- Modify search function in WordPress (TwentyTwelve)
- Show/hide Widgets in Dashboard Based on Current Advanced Custom Fields Option
- syntax for remove_filter in parent theme with class
- How to Acheive the custom woocommerce category template
- Can I remove the Rich Text box editor for a specific post?
- How to add CSS style sheet dynamically in wordpress
- How to update BuddyPress xprofile fields programmatically? [closed]
- Replace Archive Widget Link Text
- A snippet after every image
- Programmatically set page template based on page ID
- How can I add an image field to BuddyPress Extended Profile Fields? [closed]
- wp_remote_post with ssl:// protocol
- Best way to programatically add “rel” attributes to page and post images
- How to include local menu based on page id?
- How to add custom fields to my custom registration form
- How to display post content instead of excerpt
- Override a theme function in a child theme?
- changing behaviour of get_search_form
- Include default functions and methods
- Please Explain the Importing Process of Multiple Stylesheets for Child Themes
- check if author has published posts in custom post type, then send mail
- paginate_links() don’t properly work in search.php?
- AMP – Change rel=”canonical” from functions.php [closed]
- echo custom fields with AJAX
- Function filter breaking tag archive menus
- How to create a functions.php in child theme? [closed]
- How to echo the value of an array element using a function via a shortcode
- Convert multiple logos into the_custom_logo
- I can’t add CSS with functions.php
- Register_Sidebar overwriting itself and doesn’t exist in global $wp_registered_sidebars;
- widgets not working
- wp_get_archives() output
- hook for dashboard show_user_profile
- Get slug of current category in functions.php
- Prevent wp_signon redirect on failed login for ajax login
- is_email gives me error
- only update titles of single posts
- Post content overflows on my mobile phone
- OOP Switch statement with array as parameter
- Woocommerce custom calculation function
- button to toggle css styling / div visibility?
- Pagination won’t work on custom page
- Does WordPress function replace_hello() exists?
- Shortcode Function – Can’t get anything else to return after running shortcode within shortcode
- Using wp_localize_script in template file – is it secure?
- Trying to Add a LEFT Sidebar?
- Login functions
- Getting error while trying to use custom comment function
- Load WP Admin scripts in a child theme functions file
- add_role menu pages are not visible
- Highlight only current on single pages
- Site is not updating because something is wrong with custom code. How to fix it?
- Changes doesn’t show up on blog
- Adding pagination to custom WordPress function
- How can i hide content if not friend in Buddypress? [closed]
- Save output of the_content_rss into variable
- My website is generating weired url parameters of paginated pages
- How can I modify or filter this variable in an existing class? (Mai Theme)
- How to trigger an update_option
- Cron Register everytime if i reload admin if i pass some extra argument in wp_schedule_event function