I been using Kaya Login Notification on my WordPress site, and it’s been a valuable tool for monitoring user logins. However, I’ve noticed a few features that I believe could greatly enhance its functionality and make it even more useful.
User Login Email Notifications: It would be fantastic if Kaya Login Notification could send email notifications to the admin or ‘as Extra Email’ when a user logs into the website.
UTM Data in Email Notifications in Table Format: Similar to Simple Login Notification, having the option to include UTM data in the email notifications would be a tremendous asset.
The data could include:
I’ve attached a screenshot of Simple Login Notification, which has these features, for reference.
Thank you for your attention to this feature request.
~ Amit
]]>Please, replace this at kaya-login-notification\lib\functions.php with
`/** * Get the IP address of the client. * * @since 1.2.0 * * @return string */ if (!function_exists('wpkln_getClientIP')) { function wpkln_getClientIP() { //cloudflare ip if (isset($_SERVER['HTTP_CF_CONNECTING_IP']) && filter_var($_SERVER['HTTP_CF_CONNECTING_IP'], FILTER_VALIDATE_IP)) { $clientIP = $_SERVER['HTTP_CF_CONNECTING_IP']; } //cloudflare ip elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { $clientIP = $_SERVER['HTTP_X_FORWARDED_FOR']; } elseif (!empty($_SERVER['HTTP_CLIENT_IP'])) { $clientIP = $_SERVER['HTTP_CLIENT_IP']; } else { $clientIP = $_SERVER['REMOTE_ADDR']; } return (filter_var($clientIP, FILTER_VALIDATE_IP) ? $clientIP : ''); } }`]]>