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 |
---|---|
1104 | <p id="nav"> |
1105 | <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> |
1106 | <?php |
1107 |
|
1108 | echo esc_html( $login_link_separator ); |
1109 |
|
1110 | $html_link = sprintf( '<a href="%s">%s</a>', esc_url( wp_lostpassword_url() ), __( 'Lost your password?' ) ); |
1111 |
|
1112 | /** This filter is documented in wp-login.php */ |
1113 | echo apply_filters( 'lost_password_html_link', $html_link ); |
1114 |
|
1115 | ?> |
1116 | </p> |
1117 | <?php |
1118 |
|
1119 | login_footer( 'user_login' ); |
1120 | break; |
1121 |
|
1122 | case 'checkemail': |
Line | Code |
1482 | $html_link = sprintf( '<a href="%s">%s</a>', esc_url( wp_lostpassword_url() ), __( 'Lost your password?' ) ); |
1483 |
|
1484 | /** |
1485 | * Filters the link that allows the user to reset the lost password. |
1486 | * |
1487 | * @since 6.1.0 |
1488 | * |
1489 | * @param string $html_link HTML link to the lost password form. |
1490 | */ |
1491 | echo apply_filters( 'lost_password_html_link', $html_link ); |
1492 |
|
1493 | ?> |
1494 | </p> |
1495 | <?php |
1496 | } |
1497 |
|
1498 | $login_script = 'function wp_attempt_focus() {'; |
1499 | $login_script .= 'setTimeout( function() {'; |
1500 | $login_script .= 'try {'; |