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
918                <a class="wp-login-log-in" href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>
919                <?php
920
921                if ( get_option( 'users_can_register' ) ) {
922                     $registration_url = sprintf( '<a class="wp-login-register" href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
923
924                     echo esc_html( $login_link_separator );
925
926                     /** This filter is documented in wp-includes/general-template.php */
927                     echo apply_filters( 'register', $registration_url );
928                }
929
930                ?>
931           </p>
932           <?php
933
934           login_footer( 'user_login' );
935           break;
936
 
Line Code
1082                <a class="wp-login-log-in" href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>
1083                <?php
1084
1085                if ( get_option( 'users_can_register' ) ) {
1086                     $registration_url = sprintf( '<a class="wp-login-register" href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
1087
1088                     echo esc_html( $login_link_separator );
1089
1090                     /** This filter is documented in wp-includes/general-template.php */
1091                     echo apply_filters( 'register', $registration_url );
1092                }
1093
1094                ?>
1095           </p>
1096           <?php
1097
1098           login_footer( 'pass1' );
1099           break;
1100
 
Line Code
1564           if ( ! $interim_login ) {
1565                ?>
1566                <p id="nav">
1567                     <?php
1568
1569                     if ( get_option( 'users_can_register' ) ) {
1570                          $registration_url = sprintf( '<a class="wp-login-register" href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
1571
1572                          /** This filter is documented in wp-includes/general-template.php */
1573                          echo apply_filters( 'register', $registration_url );
1574
1575                          echo esc_html( $login_link_separator );
1576                     }
1577
1578                     $html_link = sprintf( '<a class="wp-login-lost-password" href="%s">%s</a>', esc_url( wp_lostpassword_url() ), __( 'Lost your password?' ) );
1579
1580                     /**
1581                      * Filters the link that allows the user to reset the lost password.
1582                      *