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
852                <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>
853                <?php
854
855                if ( get_option( 'users_can_register' ) ) {
856                     $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
857
858                     echo esc_html( $login_link_separator );
859
860                     /** This filter is documented in wp-includes/general-template.php */
861                     echo apply_filters( 'register', $registration_url );
862                }
863
864                ?>
865           </p>
866           <?php
867
868           login_footer( 'user_login' );
869           break;
870
 
Line Code
988                <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>
989                <?php
990
991                if ( get_option( 'users_can_register' ) ) {
992                     $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
993
994                     echo esc_html( $login_link_separator );
995
996                     /** This filter is documented in wp-includes/general-template.php */
997                     echo apply_filters( 'register', $registration_url );
998                }
999
1000                ?>
1001           </p>
1002           <?php
1003
1004           login_footer( 'pass1' );
1005           break;
1006
 
Line Code
1441           if ( ! $interim_login ) {
1442                ?>
1443                <p id="nav">
1444                     <?php
1445
1446                     if ( get_option( 'users_can_register' ) ) {
1447                          $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
1448
1449                          /** This filter is documented in wp-includes/general-template.php */
1450                          echo apply_filters( 'register', $registration_url );
1451
1452                          echo esc_html( $login_link_separator );
1453                     }
1454
1455                     ?>
1456                     <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?' ); ?></a>
1457                </p>
1458                <?php
1459           }