WordPress.org

Ready to get started?Download WordPress

Codex

Plugin API/Action Reference/register post

Contents

Description

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.

Parameters

This hook is passed three parameters:

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

Source File

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

Related

Tutorials

Action Hooks

Filter Hooks


Return to Plugin API/Action Reference