register_post хук-событиеWP 2.1.0

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

Использование

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(строка)
The submitted username after being sanitized.
$user_email(строка)
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.

Список изменений

С версии 2.1.0 Введена.

Где вызывается хук

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

Где используется хук в WordPress

Использование не найдено.