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