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
1157                          /* translators: %s: Link to the login page. */
1158                          __( 'Registration complete. Please check your email, then visit the <a href="%s">login page</a>.' ),
1159                          wp_login_url()
1160                     ),
1161                     'message'
1162                );
1163           }
1164
1165           /** This action is documented in wp-login.php */
1166           $errors = apply_filters( 'wp_login_errors', $errors, $redirect_to );
1167
1168           login_header( __( 'Check your email' ), '', $errors );
1169           login_footer();
1170           break;
1171
1172      case 'confirmaction':
1173           if ( ! isset( $_GET['request_id'] ) ) {
1174                wp_die( __( 'Missing request ID.' ) );
1175           }
 
Line Code
1376
1377           /**
1378            * Filters the login page errors.
1379            *
1380            * @since 3.6.0
1381            *
1382            * @param WP_Error $errors      WP Error object.
1383            * @param string   $redirect_to Redirect destination URL.
1384            */
1385           $errors = apply_filters( 'wp_login_errors', $errors, $redirect_to );
1386
1387           // Clear any stale cookies.
1388           if ( $reauth ) {
1389                wp_clear_auth_cookie();
1390           }
1391
1392           login_header( __( 'Log In' ), '', $errors );
1393
1394           if ( isset( $_POST['log'] ) ) {