Categories for Uncategorized

How to allow users to login using email

add_action( ‘wp_authenticate’, ’email_address_login’ ); function email_address_login( &$username, &$password ) { $user = get_user_by( ’email’, $username ); if( !empty( $user->user_login ) ) { $username = $user->user_login; } } This is really a simple action utilizing the wp_authenticate. ref: https://codex.wordpress.org/Function_Reference/wp_authenticate

[Read More...»]