Title: registration_errors filter problem
Last modified: August 5, 2017

---

# registration_errors filter problem

 *  Resolved [brunonar](https://wordpress.org/support/users/brunonar/)
 * (@brunonar)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/registration_errors-filter-problem-2/)
 * I have a function set to list errors in my user registration if the registrant
   doesn’t include some custom fields. My understanding is that if the registration_errors
   filter returns an error then no registration will occur. This is precisely what
   happens with NUA deactivated, so I’ve isolated this to NUA.
 * The code that I’m using is:
 *     ```
       function mmy_func($errors, $sanitized_user_login, $user_email){
           $errors->add('mmfail','Fail Message');
           return $errors;
       }
       add_filter( 'registration_errors', 'mmy_func', 10, 3 );
       ```
   
 * I tried to change the priority to 9 as well. The problem remained.
 * Please let me know if there is any other info I can provide.
 * Thanks in advance.
    -  This topic was modified 8 years, 9 months ago by [brunonar](https://wordpress.org/support/users/brunonar/).
      Reason: more details

The topic ‘registration_errors filter problem’ is closed to new replies.

 * ![](https://ps.w.org/new-user-approve/assets/icon-128x128.gif?rev=2544141)
 * [New User Approve](https://wordpress.org/plugins/new-user-approve/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/new-user-approve/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/new-user-approve/)
 * [Active Topics](https://wordpress.org/support/plugin/new-user-approve/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/new-user-approve/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/new-user-approve/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [brunonar](https://wordpress.org/support/users/brunonar/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/registration_errors-filter-problem-2/)
 * Status: resolved