Title: Change error message
Last modified: June 14, 2021

---

# Change error message

 *  Resolved Anonymous User 18744739
 * (@anonymized-18744739)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/change-error-message-5/)
 * How can I change these error messages?
 * Username already exist
    Email already exist

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

 *  Plugin Support [sanjuacharya77](https://wordpress.org/support/users/sanjuacharya77/)
 * (@sanjuacharya77)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/change-error-message-5/#post-14565269)
 * Hi @vmpro,
 * Thanks for writing in. please add the given code snippet in your functions.php
   file in order to meet your requirements.
 * Here is the code:
 *     ```
       add_filter( 'user_registration_response_array',function( $response_array, $form_data, $form_id ){
       	if( is_array($response_array) && !empty($response_array) ) {
       		foreach($response_array as $key => $message ){
       			if('Username already exists.' ===  $response_array[$key]){
       				$response_array[$key] = __('your custom message Username already exists.','user-registration');
       			}
       			if('Email already exists.' ===  $response_array[$key]){
       				$response_array[$key] = __('your custom message Email already exists.','user-registration');
       			}
       		}
       	}
       return $response_array;
       },10,3);
       ```
   
 * Let me know whether it helps or not and I will get back to you.
 * Best Regards!
 *  Thread Starter Anonymous User 18744739
 * (@anonymized-18744739)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/change-error-message-5/#post-14567549)
 * Worked perfectly.
 * Thank you very much!
 *  Plugin Support [sanjuacharya77](https://wordpress.org/support/users/sanjuacharya77/)
 * (@sanjuacharya77)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/change-error-message-5/#post-14577914)
 * Hi @vmpro,
 * Glad to know that the issue is resolved. ​If you have a moment to spare then 
   we would really appreciate your review of our plugin. Please click on this link
   [https://wordpress.org/support/plugin/user-registration/reviews/and](https://wordpress.org/support/plugin/user-registration/reviews/and)
   share your thoughts about our team and our plugin. We would love to hear from
   you.
    ​ Thanks!

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

The topic ‘Change error message’ is closed to new replies.

 * ![](https://ps.w.org/user-registration/assets/icon-256x256.gif?rev=3284028)
 * [User Registration & Membership - Free & Paid Memberships, Subscriptions, Content Restriction, User Profile, Custom User Registration & Login Builder](https://wordpress.org/plugins/user-registration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-registration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-registration/)
 * [Active Topics](https://wordpress.org/support/plugin/user-registration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-registration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-registration/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [sanjuacharya77](https://wordpress.org/support/users/sanjuacharya77/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/change-error-message-5/#post-14577914)
 * Status: resolved