Title: Custom Error Messages
Last modified: August 30, 2016

---

# Custom Error Messages

 *  Resolved [kallym](https://wordpress.org/support/users/kallym/)
 * (@kallym)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/custom-error-messages-2/)
 * 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/](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/custom-error-messages-2/#post-6515668)
 * 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](https://wordpress.org/support/users/kallym/)
 * (@kallym)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/custom-error-messages-2/#post-6515714)
 * 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](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/custom-error-messages-2/#post-6515719)
 * 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.

 * ![](https://ps.w.org/all-in-one-wp-security-and-firewall/assets/icon-256x256.
   png?rev=2798307)
 * [All-In-One Security (AIOS) – Security and Firewall](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/reviews/)

## Tags

 * [custom error message](https://wordpress.org/support/topic-tag/custom-error-message/)

 * 3 replies
 * 2 participants
 * Last reply from: [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/custom-error-messages-2/#post-6515719)
 * Status: resolved