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
864                <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>
865                <?php
866
867                if ( get_option( 'users_can_register' ) ) {
868                     $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
869
870                     echo esc_html( $login_link_separator );
871
872                     /** This filter is documented in wp-includes/general-template.php */
873                     echo apply_filters( 'register', $registration_url );
874                }
875
876                ?>
877           </p>
878           <?php
879
880           login_footer( 'user_login' );
881           break;
882
 
Line Code
1010                <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>
1011                <?php
1012
1013                if ( get_option( 'users_can_register' ) ) {
1014                     $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
1015
1016                     echo esc_html( $login_link_separator );
1017
1018                     /** This filter is documented in wp-includes/general-template.php */
1019                     echo apply_filters( 'register', $registration_url );
1020                }
1021
1022                ?>
1023           </p>
1024           <?php
1025
1026           login_footer( 'pass1' );
1027           break;
1028
 
Line Code
1478           if ( ! $interim_login ) {
1479                ?>
1480                <p id="nav">
1481                     <?php
1482
1483                     if ( get_option( 'users_can_register' ) ) {
1484                          $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
1485
1486                          /** This filter is documented in wp-includes/general-template.php */
1487                          echo apply_filters( 'register', $registration_url );
1488
1489                          echo esc_html( $login_link_separator );
1490                     }
1491
1492                     $html_link = sprintf( '<a href="%s">%s</a>', esc_url( wp_lostpassword_url() ), __( 'Lost your password?' ) );
1493
1494                     /**
1495                      * Filters the link that allows the user to reset the lost password.
1496                      *