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