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
1220                          /* translators: %s: Link to the login page. */
1221                          __( 'Registration complete. Please check your email, then visit the <a href="%s">login page</a>.' ),
1222                          wp_login_url()
1223                     ),
1224                     'message'
1225                );
1226           }
1227
1228           /** This action is documented in wp-login.php */
1229           $errors = apply_filters( 'wp_login_errors', $errors, $redirect_to );
1230
1231           login_header( __( 'Check your email' ), '', $errors );
1232           login_footer();
1233           break;
1234
1235      case 'confirmaction':
1236           if ( ! isset( $_GET['request_id'] ) ) {
1237                wp_die( __( 'Missing request ID.' ) );
1238           }
 
Line Code
1459
1460           /**
1461            * Filters the login page errors.
1462            *
1463            * @since 3.6.0
1464            *
1465            * @param WP_Error $errors      WP Error object.
1466            * @param string   $redirect_to Redirect destination URL.
1467            */
1468           $errors = apply_filters( 'wp_login_errors', $errors, $redirect_to );
1469
1470           // Clear any stale cookies.
1471           if ( $reauth ) {
1472                wp_clear_auth_cookie();
1473           }
1474
1475           login_header( __( 'Log In' ), '', $errors );
1476
1477           if ( isset( $_POST['log'] ) ) {