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 |
|---|---|
| 1188 | <p id="nav"> |
| 1189 | <a class="wp-login-log-in" href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> |
| 1190 | <?php |
| 1191 | |
| 1192 | echo esc_html( $login_link_separator ); |
| 1193 | |
| 1194 | $html_link = sprintf( '<a class="wp-login-lost-password" href="%s">%s</a>', esc_url( wp_lostpassword_url() ), __( 'Lost your password?' ) ); |
| 1195 | |
| 1196 | /** This filter is documented in wp-login.php */ |
| 1197 | echo apply_filters( 'lost_password_html_link', $html_link ); |
| 1198 | |
| 1199 | ?> |
| 1200 | </p> |
| 1201 | <?php |
| 1202 | |
| 1203 | login_footer( 'user_login' ); |
| 1204 | break; |
| 1205 | |
| 1206 | case 'checkemail': |
| Line | Code |
| 1571 | $html_link = sprintf( '<a class="wp-login-lost-password" href="%s">%s</a>', esc_url( wp_lostpassword_url() ), __( 'Lost your password?' ) ); |
| 1572 | |
| 1573 | /** |
| 1574 | * Filters the link that allows the user to reset the lost password. |
| 1575 | * |
| 1576 | * @since 6.1.0 |
| 1577 | * |
| 1578 | * @param string $html_link HTML link to the lost password form. |
| 1579 | */ |
| 1580 | echo apply_filters( 'lost_password_html_link', $html_link ); |
| 1581 | |
| 1582 | ?> |
| 1583 | </p> |
| 1584 | <?php |
| 1585 | } |
| 1586 | |
| 1587 | $login_script = 'function wp_attempt_focus() {'; |
| 1588 | $login_script .= 'setTimeout( function() {'; |
| 1589 | $login_script .= 'try {'; |