Title: Custom error message &#8211; plugin doesn&#8217;t work
Last modified: April 15, 2023

---

# Custom error message – plugin doesn’t work

 *  Resolved [ferda2](https://wordpress.org/support/users/ferda2/)
 * (@ferda2)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/custom-error-message-plugin-doesnt-work/)
 * When I use a custom error message using a function, blocking doesn’t work. In
   the log there is an entry Your IP address is temporarily blocked, but access 
   works.
 * **Function (function.php):**
 *     ```wp-block-code
       function no_wordpress_errors(){
       return 'Custom message';
       }
       add_filter( 'login_errors', 'no_wordpress_errors' );
       remove_action('wp_head', 'wp_generator');
       ```
   

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

 *  Plugin Author [GuardGiant brute force protection](https://wordpress.org/support/users/guardgiant/)
 * (@guardgiant)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/custom-error-message-plugin-doesnt-work/#post-16658048)
 * Thank you for getting in touch. I’ve tried your code on our test website but 
   GuardGiant is working as expected for us.
 * Perhaps there are other plugins or functions that might be having an effect? 
   If possible, please could you try this on a clean install of WordPress to check
   that it’s working, and then gradually add other plugins to test?
 *  Thread Starter [ferda2](https://wordpress.org/support/users/ferda2/)
 * (@ferda2)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/custom-error-message-plugin-doesnt-work/#post-16661301)
 * Hi, your plugin doesn’t work with BBQ Firewall.
 *  Plugin Author [GuardGiant brute force protection](https://wordpress.org/support/users/guardgiant/)
 * (@guardgiant)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/custom-error-message-plugin-doesnt-work/#post-16661645)
 * Thanks very much for letting us know. We will take a look at this plugin and 
   see if there is anything we can do to accomodate it.

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

The topic ‘Custom error message – plugin doesn’t work’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/guardgiant_705fbd.svg)
 * [WordPress Brute Force Protection - Stop Brute Force Attacks](https://wordpress.org/plugins/guardgiant/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/guardgiant/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/guardgiant/)
 * [Active Topics](https://wordpress.org/support/plugin/guardgiant/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/guardgiant/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/guardgiant/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [GuardGiant brute force protection](https://wordpress.org/support/users/guardgiant/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/custom-error-message-plugin-doesnt-work/#post-16661645)
 * Status: resolved