Title: Modify message
Last modified: December 26, 2024

---

# Modify message

 *  Resolved [Emilio Valdés Reyes](https://wordpress.org/support/users/emiliovaldes88/)
 * (@emiliovaldes88)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/modify-message-2/)
 * Is it possible to modify the error message that appears when a user inserts a
   domain that I have blacklisted?

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

 *  Plugin Author [DeveloperWil](https://wordpress.org/support/users/developerwil/)
 * (@developerwil)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/modify-message-2/#post-18217021)
 * Can you explain further what message and what you’d like it changed to?
 * Wil.
 *  Thread Starter [Emilio Valdés Reyes](https://wordpress.org/support/users/emiliovaldes88/)
 * (@emiliovaldes88)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/modify-message-2/#post-18217352)
 * Hi,
 * My intention is to use the blacklist plugin to block the sending of forms to 
   people who use non-professional email domains, such as gmail.com, yahoo.com, 
   hotmail.com, etc…
 * The original message that appears is the following: Sorry, [@gmail](https://wordpress.org/support/users/gmail/)
   is blocked for this form. Try another email address.
 * And I need to change it to: Sorry, only professional email addresses are allowed.
 * I am not an experienced php developer but reviewing the plugin source code I 
   have realized that this message can be changed on line 103, but if I make a change
   in this way, I would lose it with future plugin updates.
 * Therefore, it would be very convenient to be able to have a field in the form
   editor itself that allows inserting the message that appears.
 *  Plugin Author [DeveloperWil](https://wordpress.org/support/users/developerwil/)
 * (@developerwil)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/modify-message-2/#post-18219257)
 * I have released v1.1.1 with an added filter so that you can change the error 
   code yourself.
   Update to version 1.1.1 then add the following code in a code 
   snippets plugin or your child theme’s functions.php file.
 * `add_filter( 'elementor_forms_blacklist_error_message_blocked', function( $error_message,
   $blocked_email ) {
   return sprintf( 'Custom Error: The email or domain %s is not
   allowed.', $blocked_email );}, 10, 2 );
 * You can use the following variables to include in your custom error message.
   
   $error_message is the entire default error message.$blocked_email is the list
   of blocked emails the plugin found.Or, for your specific case you can use the
   following code:`add_filter( 'elementor_forms_blacklist_error_message_blocked',
   function( $error_message, $blocked_email ) {return( 'Sorry, only professional
   email addresses are allowed.' );}, 10, 2 );
    -  This reply was modified 1 year, 4 months ago by [DeveloperWil](https://wordpress.org/support/users/developerwil/).
 *  Thread Starter [Emilio Valdés Reyes](https://wordpress.org/support/users/emiliovaldes88/)
 * (@emiliovaldes88)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/modify-message-2/#post-18245307)
 * Hello, thank you very much for the update.
 * In the spirit of improving this plugin I would like to make some comments.
 * It is true that the update offers a solution, but it is quite cumbersome for 
   people who do not have medium knowledge of wordpress, since you have to use code
   in the function file or install a plugin that allows you to inject code.
 * In my case I can achieve it, since I have the necessary knowledge, but I leave
   you the following recommendation that will improve the user experience.
 * As you can see in the image, my idea is to put one more field in the form from
   which a personalized message is allowed to be entered. I have attached an image
   with the idea.
 * In this way, each form will be able to have a different personalized message 
   unlike the solution proposed in this update.
 * [https://ibb.co/hZ5SzV9](https://ibb.co/hZ5SzV9)
 * ![](https://i0.wp.com/i.ibb.co/xfvNT6L/Sin-t-tulo-2.jpg?ssl=1)
    -  This reply was modified 1 year, 4 months ago by [Emilio Valdés Reyes](https://wordpress.org/support/users/emiliovaldes88/).
 *  Plugin Author [DeveloperWil](https://wordpress.org/support/users/developerwil/)
 * (@developerwil)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/modify-message-2/#post-18246592)
 * Yes, that would be ideal. I’ll get round to that when I have some time.
 * I’ve added it as a feature request on the GitHub repo [https://github.com/DeveloperWil/Email-Blacklist-For-Elementor-Forms/issues/1](https://github.com/DeveloperWil/Email-Blacklist-For-Elementor-Forms/issues/1)
 * Thanks,
   Wil.

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

The topic ‘Modify message’ is closed to new replies.

 * ![](https://ps.w.org/email-blacklist-for-elementor-forms/assets/icon-256x256.
   jpg?rev=2912121)
 * [Email Blacklist For Elementor Forms](https://wordpress.org/plugins/email-blacklist-for-elementor-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-blacklist-for-elementor-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-blacklist-for-elementor-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/email-blacklist-for-elementor-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-blacklist-for-elementor-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-blacklist-for-elementor-forms/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [DeveloperWil](https://wordpress.org/support/users/developerwil/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/modify-message-2/#post-18246592)
 * Status: resolved