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
registration_errorsCurrently, 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?
The topic ‘Problems with custom registration validation’ is closed to new replies.