Title: Problems with custom registration validation
Last modified: August 22, 2016

---

# Problems with custom registration validation

 *  Resolved [metropolis_john](https://wordpress.org/support/users/metropolis_john/)
 * (@metropolis_john)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/problems-with-custom-registration-validation/)
 * I’ve come across a problem when using this plugin with custom registration form
   validation. The issue is that the create_new_user() function is called on the‘
   register_post’ hook. This action hook fires before the ‘registration_errors’ 
   hook, which is when WordPress Docs instruct custom validation should be called.
   In fact, they go so far as to say never to call custom validation on ‘register_post’.
 * [register_post](http://codex.wordpress.org/Plugin_API/Action_Reference/register_post)
   
   [registration_errors](http://codex.wordpress.org/Plugin_API/Filter_Reference/registration_errors)
 * Currently, when a user registers, as long as the default validation (on username
   and email fields) passes, the create_new_user() function is called, then the ‘
   registration_errors’ hook fires and returns those custom validation errors.
 * The custom validation works perfectly without this plugin, so obviously WP core
   functionality is creating the user after ‘registration_errors’. Any thoughts 
   on getting around this?
 * [https://wordpress.org/plugins/new-user-approve/](https://wordpress.org/plugins/new-user-approve/)

Viewing 1 replies (of 1 total)

 *  [Josh Harrison](https://wordpress.org/support/users/picklewagon/)
 * (@picklewagon)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/problems-with-custom-registration-validation/#post-5888596)
 * You make good points here. This is how the plugin was originally coded. I ended
   up changing it because many users were having issues. But I’m going to change
   it back and let WordPress do what it is supposed to do.

Viewing 1 replies (of 1 total)

The topic ‘Problems with custom registration validation’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Josh Harrison](https://wordpress.org/support/users/picklewagon/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/problems-with-custom-registration-validation/#post-5888596)
 * Status: resolved