Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: register

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 3 times in this file.

Line Code
786                <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>
787                <?php
788
789                if ( get_option( 'users_can_register' ) ) {
790                     $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
791
792                     echo esc_html( $login_link_separator );
793
794                     /** This filter is documented in wp-includes/general-template.php */
795                     echo apply_filters( 'register', $registration_url );
796                }
797
798                ?>
799           </p>
800           <?php
801
802           login_footer( 'user_login' );
803           break;
804
 
Line Code
922                <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>
923                <?php
924
925                if ( get_option( 'users_can_register' ) ) {
926                     $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
927
928                     echo esc_html( $login_link_separator );
929
930                     /** This filter is documented in wp-includes/general-template.php */
931                     echo apply_filters( 'register', $registration_url );
932                }
933
934                ?>
935           </p>
936           <?php
937
938           login_footer( 'user_pass' );
939           break;
940
 
Line Code
1369           if ( ! $interim_login ) {
1370                ?>
1371                <p id="nav">
1372                     <?php
1373
1374                     if ( get_option( 'users_can_register' ) ) {
1375                          $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
1376
1377                          /** This filter is documented in wp-includes/general-template.php */
1378                          echo apply_filters( 'register', $registration_url );
1379
1380                          echo esc_html( $login_link_separator );
1381                     }
1382
1383                     ?>
1384                     <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?' ); ?></a>
1385                </p>
1386                <?php
1387           }