Your cart is currently empty!
Redirect Failed Login to Same Page
—
by
If the wrong login credentials are used for the login form [affiliates_dashboard_login], the person is redirected to the WordPress Login Page. Do you have a recommended method for refreshing the custom login page rather than redirecting to the wordpress login page? If code is the best method, what code can I add to my child theme to have it refresh to the same page with a note of “Your username or password is incorrect.”
Posted in Affiliates Pro
Comments
One response to “Redirect Failed Login to Same Page”
Hi,
The template that is used to produce the login form is using the standard
wp_login_form()
function. You can pretty much freely adjust that to reflect your preferred login process. There are a few resources around related to changing the default behavior of the WordPress login, I think that the second answer on this post reflects the way most of them do it. Adding the suggested function to your child theme should do the trick.Cheers