WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 3440 | * |
| 3441 | * @since 2.1.0 |
| 3442 | * |
| 3443 | * @param string $sanitized_user_login The submitted username after being sanitized. |
| 3444 | * @param string $user_email The submitted email. |
| 3445 | * @param WP_Error $errors Contains any errors with submitted username and email, |
| 3446 | * e.g., an empty field, an invalid username or email, |
| 3447 | * or an existing username or email. |
| 3448 | */ |
| 3449 | do_action( 'register_post', $sanitized_user_login, $user_email, $errors ); |
| 3450 | |
| 3451 | /** |
| 3452 | * Filters the errors encountered when a new user is being registered. |
| 3453 | * |
| 3454 | * The filtered WP_Error object may, for example, contain errors for an invalid |
| 3455 | * or existing username or email address. A WP_Error object should always be returned, |
| 3456 | * but may or may not contain errors. |
| 3457 | * |
| 3458 | * If any errors are present in $errors, this will abort the user's registration. |