• Resolved kallym

    (@kallym)


    Hello,

    I need to customize the error messages in wp-security-user-login.php. For example, when the message says “contact the administrator” I need to tell them exactly who to contact either by name or email address.

    Is there a way to override these messages in my functions.php file? I had to edit the plugin file for now, but, know it will get overwritten.

    Thank you!

    https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, can you specify where that error message is coming from? Which action are you taking to display that error message?

    Thank you

    Thread Starter kallym

    (@kallym)

    When a user has a failed login attempt they they get a message that says “contact the administrator”. I need to change that to say “contact Joe Smith”, for example. Our registered users will know who Joe Smith is, but they won’t know who the “administrator” is.

    So I am changing line 43 of classes/wp-security-user-login.php to be:
    return new WP_Error('authentication_failed', __('<strong>ERROR</strong>: You have had more than 3 failed log in attempts and will be locked out for 4 hours or you may contact Joe Smith</a> to request an unlock.', 'aiowpsecurity'));

    But, I don’t want to change the plugin file as it will be overwritten. Is there a way I can do this in my functions.php file?

    Thank You!

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, thank you for sharing more information. The plugin developers will look at you request further.

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Error Messages’ is closed to new replies.