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.
This hook occurs 2 times in this file.
| Line | Code |
|---|---|
| 1130 | /* translators: %s: Link to the login page. */ |
| 1131 | __( 'Registration complete. Please check your email, then visit the <a href="%s">login page</a>.' ), |
| 1132 | wp_login_url() |
| 1133 | ), |
| 1134 | 'message' |
| 1135 | ); |
| 1136 | } |
| 1137 | |
| 1138 | /** This action is documented in wp-login.php */ |
| 1139 | $errors = apply_filters( 'wp_login_errors', $errors, $redirect_to ); |
| 1140 | |
| 1141 | login_header( __( 'Check your email' ), '', $errors ); |
| 1142 | login_footer(); |
| 1143 | break; |
| 1144 | |
| 1145 | case 'confirmaction': |
| 1146 | if ( ! isset( $_GET['request_id'] ) ) { |
| 1147 | wp_die( __( 'Missing request ID.' ) ); |
| 1148 | } |
| Line | Code |
| 1367 | |
| 1368 | /** |
| 1369 | * Filters the login page errors. |
| 1370 | * |
| 1371 | * @since 3.6.0 |
| 1372 | * |
| 1373 | * @param WP_Error $errors WP Error object. |
| 1374 | * @param string $redirect_to Redirect destination URL. |
| 1375 | */ |
| 1376 | $errors = apply_filters( 'wp_login_errors', $errors, $redirect_to ); |
| 1377 | |
| 1378 | // Clear any stale cookies. |
| 1379 | if ( $reauth ) { |
| 1380 | wp_clear_auth_cookie(); |
| 1381 | } |
| 1382 | |
| 1383 | login_header( __( 'Log In' ), '', $errors ); |
| 1384 | |
| 1385 | if ( isset( $_POST['log'] ) ) { |