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