Skip to content

Instantly share code, notes, and snippets.

@SErr0r
Created April 26, 2015 08:42
Show Gist options
  • Select an option

  • Save SErr0r/ecc4921d4252778fb0e5 to your computer and use it in GitHub Desktop.

Select an option

Save SErr0r/ecc4921d4252778fb0e5 to your computer and use it in GitHub Desktop.
Redirect WordPress Failed Logins back to homepage
// will redirect back to the blog's home page
wp_login_form(array('redirect'=> site_url()));
@SErr0r

SErr0r commented Apr 26, 2015

Copy link
Copy Markdown
Author

If you wish to redirect the user back to your blog homepage use the below code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment