Login error redirecting to wp-login page
You may want to checkout wp_signon as that function can provide a WP_Error object with the appropriate error messages on login failure.. the only drawback is that you will have to create your own form or replace the action url on demand. A somehow basic login function can be implemented like this: if (!function_exists(‘custom_login_function’)) { … Read more