wrong code
-
pls help me to check this login notifcation code
i try inputting it but it did not work pls check and correct it
add_action( 'wp_login', 'my_user_login_email', 10, 2 ); function my_user_login_email( $user_login, $user ) { wp_mail( $user->user_email, 'Login Notification ' . $user_login, 'Dear $user_login, We noticed a recent login to your STEPHEN EXCHANGE account with the following details: IP Address: Date and Time: If this was you, you may ignore this message ??. If this wasn’t you, please log into your Stephen Exchange account immediately to change your password. We recommend you take the following steps: 1: Click on the "MENU" and select "SETTING" 2: Click on the Gear ?? in the right Conner on your profile picture and click on "MY ACCOUNT" 3: scroll down and click on "CHANGE PASSWORD" put the current payment and the new password then confirm your new password and click on "UPDATE PASSWORD" We're always here to help if you need it. You can visit contact us via [email protected] for more information Best, STEPHEN EXCHANGE TEAM ' . um_user_profile_url( $user->ID ) ); }
and help me to add the ip address of each user and date and time
thanks
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘wrong code’ is closed to new replies.