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