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
602 <p id="nav">
603 <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e('Log in') ?></a>
604 <?php
605 if ( get_option( 'users_can_register' ) ) :
606      $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
607
608      echo esc_html( $login_link_separator );
609
610      /** This filter is documented in wp-includes/general-template.php */
611      echo apply_filters( 'register', $registration_url );
612 endif;
613 ?>
614 </p>
615
616 <?php
617 login_footer('user_login');
618
619 if ( $switched_locale ) {
620     restore_previous_locale();
 
Line Code
731 <p id="nav">
732 <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>
733 <?php
734 if ( get_option( 'users_can_register' ) ) :
735      $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
736
737      echo esc_html( $login_link_separator );
738
739      /** This filter is documented in wp-includes/general-template.php */
740      echo apply_filters( 'register', $registration_url );
741 endif;
742 ?>
743 </p>
744
745 <?php
746 login_footer('user_pass');
747
748 if ( $switched_locale ) {
749     restore_previous_locale();
 
Line Code
1016 </form>
1017
1018 <?php if ( ! $interim_login ) { ?>
1019 <p id="nav">
1020 <?php if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ) ) ) :
1021      if ( get_option( 'users_can_register' ) ) :
1022           $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
1023
1024           /** This filter is documented in wp-includes/general-template.php */
1025           echo apply_filters( 'register', $registration_url );
1026
1027           echo esc_html( $login_link_separator );
1028      endif;
1029      ?>
1030      <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?' ); ?></a>
1031 <?php endif; ?>
1032 </p>
1033 <?php } ?>
1034