Created
October 25, 2022 11:54
-
-
Save Oscar-Abad-Folgueira/bb2d62705be7d177e77d4dd94fcb2232 to your computer and use it in GitHub Desktop.
WordPress Snippet: Desactivar login por email
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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