register_post action-hookWP 2.1.0

Fires when submitting registration form data, before the user is created.

Usage

add_action( 'register_post', 'wp_kama_register_post_action', 10, 3 );

/**
 * Function for `register_post` action-hook.
 * 
 * @param string   $sanitized_user_login The submitted username after being sanitized.
 * @param string   $user_email           The submitted email.
 * @param WP_Error $errors               Contains any errors with submitted username and email, e.g., an empty field, an invalid username or email, or an existing username or email.
 *
 * @return void
 */
function wp_kama_register_post_action( $sanitized_user_login, $user_email, $errors ){

	// action...
}
$sanitized_user_login(string)
The submitted username after being sanitized.
$user_email(string)
The submitted email.
$errors(WP_Error)
Contains any errors with submitted username and email, e.g., an empty field, an invalid username or email, or an existing username or email.

Changelog

Since 2.1.0 Introduced.

Where the hook is called

register_new_user()
register_post
wp-includes/user.php 3344
do_action( 'register_post', $sanitized_user_login, $user_email, $errors );

Where the hook is used in WordPress

Usage not found.