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
- Child theme – Overriding ‘require_once’ in functions.php
- Display custom comments field for first level only
- Show Video in Excerpt
- Override parent theme function that is not hooked or in the functions.php file
- function to include is_home, is_archive, is_category, is_author etc in one function?
- How to remove canonical url in wordpress? add_filter( ‘wpseo_canonical’, ‘__return_false’ ); not Working for me
- get_the_excerpt() not returning anything when post has no excerpt
- Why isn’t is_page_template() adding a body class?
- Query children and parent title
- Creating loop within functions.php
- Limit filter upgrader_post_install to a single plugin
- How to test for Super Admin
- creating shortcode to pull json array
- Still relevant method of embedding images in WP Theme in 2018
- Pass Shortcode Attribute to footer Script
- post to subcategory and parent in wp_insert_post
- Variable if post is sticky in functions.php
- Create a new query in function.php to filter blog posts
- Use third party Library in wordpress
- Remove the product category module block from the Woocommerce product page
- How to get correct URLs in network wide menu (Multisite)?
- Excerpts are not displayed by a shortcode on category pages
- It does not work concatenation in function.php
- How would I go about replacing this function in my child theme located in inc/template-tags.php
- Condition OR for current user ID
- Retrieve a value from Yoast SEO to use to set a default twitter card image honoring overrides
- If user is logged-in display/hide something
- Visual Composer creating own shortcodes with vc_map() to return simple Image
- Adding javascript to functions.php causes problems with my template
- Where do I store custom functions that call custom page template files?
- How can I add a class to a nav li depending on URL?
- Access category within rss2_head hook?
- How to Extend login session times to a Month
- Modifying the_posts_pagination from within functions.php instead of template files
- Woocommerce image sizes missing from Appearance › Customize but not declared by theme
- Prevent WordPress Automatic Logout
- functions php file [closed]
- How to add array [closed]
- How add body_class from wp_termmeta
- remove_action not working, even after changing priority [duplicate]
- Rewrite Question Mark in Post Template with URL Parameter for clean URLs
- Modify function to only return values for the user that’s logged in
- WordPress performance – send all metaboxes to function or to call it again
- Change custom featured image size in twentythirteen child theme
- Theme Customizer – Custom Sections Display, but do Nothing
- Display a list of random terms from custom taxonomy with shortcode
- WP_Query for Attachments not working as expected
- Text replace for the whole body tag
- Deleting guests profile users after 1.5 hours
- wp enqueue style on about us page
- CF7 select value get to function and reciept value from function
- Remove nofollow from internal comment links via functions.php
- How can I automatically delete comments that contain a URL?
- Run function for specific user only
- Remove action hook from Class, understanding OOP
- Create custom admin bar menu items
- Adding a class to the body of an inactive site using multisite
- Conditionally apply css for a specific template part
- Setting Active Nav item (of Pages) when you are on a Post with Category
- How to disable site title and description when custom header is uploaded on the customizer?
- Regex works in regexr, but not if I filter content [closed]
- Increase Comment Author Gravatar Size On WordPress Default Comment Function
- Pass jquery var to a function in functions.php
- How about many “require_once” will affect the page load speed? [closed]
- Removing all Category pages with one exception
- How to force Cover block to use the full size image resolution