Skip to content

Instantly share code, notes, and snippets.

@Oscar-Abad-Folgueira
Created October 25, 2022 11:54
Show Gist options
  • Save Oscar-Abad-Folgueira/bb2d62705be7d177e77d4dd94fcb2232 to your computer and use it in GitHub Desktop.
Save Oscar-Abad-Folgueira/bb2d62705be7d177e77d4dd94fcb2232 to your computer and use it in GitHub Desktop.
WordPress Snippet: Desactivar login por email
<?php
/**
* @snippet WordPress Snippet: Desactivar login por email
* @author Oscar Abad Folgueira
* @author_url https://www.oscarabadfolgueira.com
* @snippet_url https://oscarabadfolgueira.com/
*/
// Desactivar login por email
remove_filter( 'authenticate', 'wp_authenticate_email_password', 20 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment