Skip to content

Instantly share code, notes, and snippets.

@chrisdavidmiles
Created June 14, 2017 21:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisdavidmiles/3fe5a4175616a94cff95fb0e0857b57c to your computer and use it in GitHub Desktop.
Save chrisdavidmiles/3fe5a4175616a94cff95fb0e0857b57c to your computer and use it in GitHub Desktop.
Disable WordPress password authentication. User/Pass combination will always return false, even if correct password is used. Use only if alternate login methods are in place.
remove_filter('authenticate', 'wp_authenticate_username_password', 20, 3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment