Title: Using um_submit_form_error for custom error display
Last modified: October 24, 2016

---

# Using um_submit_form_error for custom error display

 *  [chromausa](https://wordpress.org/support/users/chromausa/)
 * (@chromausa)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/using-um_submit_form_error-for-custom-error-display/)
 * Hello,
 * I would like to edit one of the default registration form error messages. Currently,
   when the new customer tries to register with a blocked email address, the plugin
   generates the message: “We do not accept registrations from that domain.” I would
   like to edit this message, but am unable to locate the messages being used in
   the plug in interface. The closest thing I can find to a possibility is in this
   article: [http://docs.ultimatemember.com/article/94-apply-custom-validation-to-a-field](http://docs.ultimatemember.com/article/94-apply-custom-validation-to-a-field)
 * However, I don’t want to rewrite existing code since the plugin already handles
   this.

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

 *  [borisv](https://wordpress.org/support/users/borisv/)
 * (@borisv)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/using-um_submit_form_error-for-custom-error-display/#post-8368960)
 * How did you block a domain name on Ultimate Member?
 *  Thread Starter [chromausa](https://wordpress.org/support/users/chromausa/)
 * (@chromausa)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/using-um_submit_form_error-for-custom-error-display/#post-8368996)
 * Using the “Settings: Access: Blocked email addresses” list.
 * The message for that setting is:
    “This will block the specified e-mail addresses
   from being able to sign up or sign in to your site. To block an entire domain,
   use something like *@domain.com”
 * The message above is the message provided by the plugin on the registration page(
   I tested using a gmail address after setting it to block using “*@gmail.com” 
   in the list.)
 *  [borisv](https://wordpress.org/support/users/borisv/)
 * (@borisv)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/using-um_submit_form_error-for-custom-error-display/#post-8373243)
 * Go to /wp-content/plugins/ultimate-member/languages/ultimatemember-en_US.po
 * Approximately at line 1899.
 * Let me know if that helps,
 *  Thread Starter [chromausa](https://wordpress.org/support/users/chromausa/)
 * (@chromausa)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/using-um_submit_form_error-for-custom-error-display/#post-8378286)
 * Thanks, that led me to the line that allowed me to change it.
 * Lines 1898- 2000:
 *     ```
       #: core/um-actions-misc.php:107
       msgid "We do not accept registrations from that domain. Please use your company email address."
       msgstr ""
       ```
   
 * Under core/um-actions-misc.php, at line 107 is the error used, within a switch/
   case structure.
 *  [borisv](https://wordpress.org/support/users/borisv/)
 * (@borisv)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/using-um_submit_form_error-for-custom-error-display/#post-8379251)
 * I’m glad that solved your issue.
 * What exactly did you do the core/um-actions-misc.php?
 * Also after editing, did you clear your cache at all?
 * Let me know
 *  Thread Starter [chromausa](https://wordpress.org/support/users/chromausa/)
 * (@chromausa)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/using-um_submit_form_error-for-custom-error-display/#post-8381959)
 * Just added the extra text I wanted to the message, saved, and cleared my site
   cache.
 * Tried cache clearing after altering the .po file, but no luck there.
 * Thanks again!

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

The topic ‘Using um_submit_form_error for custom error display’ is closed to new
replies.

 * ![](https://ps.w.org/ultimate-member/assets/icon-256x256.png?rev=3160947)
 * [Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin](https://wordpress.org/plugins/ultimate-member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-member/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-member/reviews/)

## Tags

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

 * 6 replies
 * 2 participants
 * Last reply from: [chromausa](https://wordpress.org/support/users/chromausa/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/using-um_submit_form_error-for-custom-error-display/#post-8381959)
 * Status: not resolved