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
772                <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>
773                <?php
774
775                if ( get_option( 'users_can_register' ) ) {
776                     $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
777
778                     echo esc_html( $login_link_separator );
779
780                     /** This filter is documented in wp-includes/general-template.php */
781                     echo apply_filters( 'register', $registration_url );
782                }
783
784                ?>
785           </p>
786           <?php
787
788           login_footer( 'user_login' );
789           break;
790
 
Line Code
908                <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>
909                <?php
910
911                if ( get_option( 'users_can_register' ) ) {
912                     $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
913
914                     echo esc_html( $login_link_separator );
915
916                     /** This filter is documented in wp-includes/general-template.php */
917                     echo apply_filters( 'register', $registration_url );
918                }
919
920                ?>
921           </p>
922           <?php
923
924           login_footer( 'user_pass' );
925           break;
926
 
Line Code
1355           if ( ! $interim_login ) {
1356                ?>
1357                <p id="nav">
1358                     <?php
1359
1360                     if ( get_option( 'users_can_register' ) ) {
1361                          $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
1362
1363                          /** This filter is documented in wp-includes/general-template.php */
1364                          echo apply_filters( 'register', $registration_url );
1365
1366                          echo esc_html( $login_link_separator );
1367                     }
1368
1369                     ?>
1370                     <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?' ); ?></a>
1371                </p>
1372                <?php
1373           }