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
1232                          /* translators: %s: Link to the login page. */
1233                          __( 'Registration complete. Please check your email, then visit the <a href="%s">login page</a>.' ),
1234                          wp_login_url()
1235                     ),
1236                     'message'
1237                );
1238           }
1239
1240           /** This action is documented in wp-login.php */
1241           $errors = apply_filters( 'wp_login_errors', $errors, $redirect_to );
1242
1243           login_header( __( 'Check your email' ), '', $errors );
1244           login_footer();
1245           break;
1246
1247      case 'confirmaction':
1248           if ( ! isset( $_GET['request_id'] ) ) {
1249                wp_die( __( 'Missing request ID.' ) );
1250           }
 
Line Code
1474
1475           /**
1476            * Filters the login page errors.
1477            *
1478            * @since 3.6.0
1479            *
1480            * @param WP_Error $errors      WP Error object.
1481            * @param string   $redirect_to Redirect destination URL.
1482            */
1483           $errors = apply_filters( 'wp_login_errors', $errors, $redirect_to );
1484
1485           // Clear any stale cookies.
1486           if ( $reauth ) {
1487                wp_clear_auth_cookie();
1488           }
1489
1490           login_header( __( 'Log In' ), '', $errors );
1491
1492           if ( isset( $_POST['log'] ) ) {