Thread Starter
Richard
(@richard0marlowe)
One more thing, is it possible to get an email notification when a user is locked out.
Hi @richard0marlowe,
you can add filter aiowps_ip_blocked_error_msg as below in active theme’s functions.php file to change ip blocked error message. you can change in return string. I have change sequence of the two message there.
function aiowps_ip_blocked_error_msg_custom() {
return '<strong>ERROR:</strong>Please contact the administrator. Access from your IP address has been blocked for security reasons.';
}
add_filter('aiowps_ip_blocked_error_msg', 'aiowps_ip_blocked_error_msg_custom');
WP security > User security > Login lockout tab have Notify by email filed. If it is enabled those email addresses are getting in email locked usernames and IP address list using 15 minute cronjobs. It will not be instant. Make sure you have the WP cron working.
You can test the cronjob using the WP Crontrol plugin installed and running aios_15_minutes_cron_event event to run from Tools > Events.
https://snipboard.io/eOVwdL.jpg