• Resolved vtad

    (@vtad)


    How can I change the generic error message when a login attempt fails?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @vtad,

    You mean to say the message “ERROR: Invalid login credentials.” generic message show

    instead actual WordPress error for to Display generic error message: if checked for WP Security > User security > login lockout tab

    Right now it is not possible to change that message.

    If you want to change on IP lockout message “ERROR: IP address has been blocked due to invalid login attempts. Please contact the admin. is possible to change using filter aiowps_ip_blocked_error_msg

    Let me know above you would like to chagne.

    Regards

    Thread Starter vtad

    (@vtad)

    I will try to change IP lockout message “ERROR: IP address?….” with the filter.

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @vtad,

    you should add the below code in the functions.php file of the active theme and change the message to custom as you want.

    function aiowps_ip_blocked_error_msg_custom() {
    $error_msg = sprintf(__('%s: IP address has been blocked due to invalid login attempts.', 'all-in-one-wp-security-and-firewall'), '<strong>' . __('ERROR', 'all-in-one-wp-security-and-firewall') . '</strong>') . ' ' . __('Please contact the admin.', 'all-in-one-wp-security-and-firewall');
    return $error_msg;
    }

    add_filter( 'aiowps_ip_blocked_error_msg', 'aiowps_ip_blocked_error_msg_custom');

    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.