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
911                <a class="wp-login-log-in" href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>
912                <?php
913
914                if ( get_option( 'users_can_register' ) ) {
915                     $registration_url = sprintf( '<a class="wp-login-register" href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
916
917                     echo esc_html( $login_link_separator );
918
919                     /** This filter is documented in wp-includes/general-template.php */
920                     echo apply_filters( 'register', $registration_url );
921                }
922
923                ?>
924           </p>
925           <?php
926
927           login_footer( 'user_login' );
928           break;
929
 
Line Code
1075                <a class="wp-login-log-in" href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>
1076                <?php
1077
1078                if ( get_option( 'users_can_register' ) ) {
1079                     $registration_url = sprintf( '<a class="wp-login-register" href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
1080
1081                     echo esc_html( $login_link_separator );
1082
1083                     /** This filter is documented in wp-includes/general-template.php */
1084                     echo apply_filters( 'register', $registration_url );
1085                }
1086
1087                ?>
1088           </p>
1089           <?php
1090
1091           login_footer( 'pass1' );
1092           break;
1093
 
Line Code
1557           if ( ! $interim_login ) {
1558                ?>
1559                <p id="nav">
1560                     <?php
1561
1562                     if ( get_option( 'users_can_register' ) ) {
1563                          $registration_url = sprintf( '<a class="wp-login-register" href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
1564
1565                          /** This filter is documented in wp-includes/general-template.php */
1566                          echo apply_filters( 'register', $registration_url );
1567
1568                          echo esc_html( $login_link_separator );
1569                     }
1570
1571                     $html_link = sprintf( '<a class="wp-login-lost-password" href="%s">%s</a>', esc_url( wp_lostpassword_url() ), __( 'Lost your password?' ) );
1572
1573                     /**
1574                      * Filters the link that allows the user to reset the lost password.
1575                      *