Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: lost_password_html_link

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
1196           <p id="nav">
1197                <a class="wp-login-log-in" href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>
1198                <?php
1199
1200                echo esc_html( $login_link_separator );
1201
1202                $html_link = sprintf( '<a class="wp-login-lost-password" href="%s">%s</a>', esc_url( wp_lostpassword_url() ), __( 'Lost your password?' ) );
1203
1204                /** This filter is documented in wp-login.php */
1205                echo apply_filters( 'lost_password_html_link', $html_link );
1206
1207                ?>
1208           </p>
1209           <?php
1210
1211           login_footer( 'user_login' );
1212           break;
1213
1214      case 'checkemail':
 
Line Code
1579                     $html_link = sprintf( '<a class="wp-login-lost-password" href="%s">%s</a>', esc_url( wp_lostpassword_url() ), __( 'Lost your password?' ) );
1580
1581                     /**
1582                      * Filters the link that allows the user to reset the lost password.
1583                      *
1584                      * @since 6.1.0
1585                      *
1586                      * @param string $html_link HTML link to the lost password form.
1587                      */
1588                     echo apply_filters( 'lost_password_html_link', $html_link );
1589
1590                     ?>
1591                </p>
1592                <?php
1593           }
1594
1595           $login_script  = 'function wp_attempt_focus() {';
1596           $login_script .= 'setTimeout( function() {';
1597           $login_script .= 'try {';