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
875                <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>
876                <?php
877
878                if ( get_option( 'users_can_register' ) ) {
879                     $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
880
881                     echo esc_html( $login_link_separator );
882
883                     /** This filter is documented in wp-includes/general-template.php */
884                     echo apply_filters( 'register', $registration_url );
885                }
886
887                ?>
888           </p>
889           <?php
890
891           login_footer( 'user_login' );
892           break;
893
 
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( 'user_pass' );
1027           break;
1028
 
Line Code
1418                ?>
1419                <p id="nav">
1420                     <?php
1421
1422                     if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ), true ) ) {
1423                          if ( get_option( 'users_can_register' ) ) {
1424                               $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
1425
1426                               /** This filter is documented in wp-includes/general-template.php */
1427                               echo apply_filters( 'register', $registration_url );
1428
1429                               echo esc_html( $login_link_separator );
1430                          }
1431
1432                          ?>
1433                          <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?' ); ?></a>
1434                          <?php
1435                     }
1436