Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Plugin API/Action Reference/register post


This action hook can be used to handle post data from a user registration before the registration_errors filter is called or errors are returned.

Please note that this hook should never be used for custom validation. Any custom validation rules should be performed using the registration_errors filter.


This hook is passed three parameters:

The sanitized username as entered by the user.
The email as entered by the user.
Any errors that have been processed up to this point.

Source File

The register_post hook is located in wp-includes/user.php



Action Hooks

Filter Hooks

Return to Plugin API/Action Reference