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
1114           <p id="nav">
1115                <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>
1116                <?php
1117
1118                echo esc_html( $login_link_separator );
1119
1120                $html_link = sprintf( '<a href="%s">%s</a>', esc_url( wp_lostpassword_url() ), __( 'Lost your password?' ) );
1121
1122                /** This filter is documented in wp-login.php */
1123                echo apply_filters( 'lost_password_html_link', $html_link );
1124
1125                ?>
1126           </p>
1127           <?php
1128
1129           login_footer( 'user_login' );
1130           break;
1131
1132      case 'checkemail':
 
Line Code
1492                     $html_link = sprintf( '<a href="%s">%s</a>', esc_url( wp_lostpassword_url() ), __( 'Lost your password?' ) );
1493
1494                     /**
1495                      * Filters the link that allows the user to reset the lost password.
1496                      *
1497                      * @since 6.1.0
1498                      *
1499                      * @param string $html_link HTML link to the lost password form.
1500                      */
1501                     echo apply_filters( 'lost_password_html_link', $html_link );
1502
1503                     ?>
1504                </p>
1505                <?php
1506           }
1507
1508           $login_script  = 'function wp_attempt_focus() {';
1509           $login_script .= 'setTimeout( function() {';
1510           $login_script .= 'try {';