register_post

Advertisement

Summery Summery

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

Syntax Syntax

do_action( 'register_post', string $sanitized_user_login, string $user_email, WP_Error $errors )

Parameters Parameters

$sanitized_user_login

The submitted username after being sanitized.

$user_email

The submitted email.

$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.

Source Source

File: wp-includes/user.php

Advertisement

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Advertisement

Leave a Reply