Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_login_errors

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

This hook occurs 2 times in this file.

Line Code
1166                          /* translators: %s: Link to the login page. */
1167                          __( 'Registration complete. Please check your email, then visit the <a href="%s">login page</a>.' ),
1168                          wp_login_url()
1169                     ),
1170                     'message'
1171                );
1172           }
1173
1174           /** This action is documented in wp-login.php */
1175           $errors = apply_filters( 'wp_login_errors', $errors, $redirect_to );
1176
1177           login_header( __( 'Check your email' ), '', $errors );
1178           login_footer();
1179           break;
1180
1181      case 'confirmaction':
1182           if ( ! isset( $_GET['request_id'] ) ) {
1183                wp_die( __( 'Missing request ID.' ) );
1184           }
 
Line Code
1398
1399           /**
1400            * Filters the login page errors.
1401            *
1402            * @since 3.6.0
1403            *
1404            * @param WP_Error $errors      WP Error object.
1405            * @param string   $redirect_to Redirect destination URL.
1406            */
1407           $errors = apply_filters( 'wp_login_errors', $errors, $redirect_to );
1408
1409           // Clear any stale cookies.
1410           if ( $reauth ) {
1411                wp_clear_auth_cookie();
1412           }
1413
1414           login_header( __( 'Log In' ), '', $errors );
1415
1416           if ( isset( $_POST['log'] ) ) {