f(x) Login Notification plugin is a security utility plugin to let you know who log to your site with other useful information such as user information and IP address via configurable email message.
After you install and activate this plugin, you can configure via Login Notification settings page in “Settings > Login Notification”.
Features:
Notes for developer:
Development of this plugin is hosted at GitHub. Pull request and bug reports are welcome.
This plugin save the options in single option name: fx-login-nf-admin
.
List of hooks available in this plugin:
filter: fx_login_nf_user_roles
(array)
List of user roles in the checkbox option.
filter: fx_login_nf_email_subject_template_default
(string)
The default email subject template. This string is translateable. To translate it in your language, translate the plugin and do not use this filter.
filter: fx_login_nf_email_content_template_default
(string)
The default email content template. This string is translateable. To translate it in your language, translate the plugin and do not use this filter.
filter: fx_login_nf_email_template_note
(string)
The template tags note in the settings page. Use this if you want to remove and add your own template tags in the email. This string is translateable. To translate it in your language, translate the plugin and do not use this filter.
filter: fx_login_nf_parse_template
(string)
If you create your own tag, you can pass it in this filter.
filter: fx_login_nf_from_email
(string)
“From Email Address” used to send the notification. As default it will use “noreply@{your site domain}”.
filter: fx_login_nf_from_name
(string)
“From Email Address Name” used to send the notification. As default it will use “{your site name} Notification”. This string is translateable.
action: fx_login_nf_before_send_mail
Hook before email notification is sent.
action: fx_login_nf_after_send_mail
Hook after email notification is sent.