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
550 </form>
551
552 <p id="nav">
553 <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e('Log in') ?></a>
554 <?php
555 if ( get_option( 'users_can_register' ) ) :
556      $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
557
558      /** This filter is documented in wp-includes/general-template.php */
559      echo ' | ' . apply_filters( 'register', $registration_url );
560 endif;
561 ?>
562 </p>
563
564 <?php
565 login_footer('user_login');
566 break;
567
568 case 'resetpass' :
 
Line Code
663 </form>
664
665 <p id="nav">
666 <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>
667 <?php
668 if ( get_option( 'users_can_register' ) ) :
669      $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
670
671      /** This filter is documented in wp-includes/general-template.php */
672      echo ' | ' . apply_filters( 'register', $registration_url );
673 endif;
674 ?>
675 </p>
676
677 <?php
678 login_footer('user_pass');
679 break;
680
681 case 'register' :
 
Line Code
930 </form>
931
932 <?php if ( ! $interim_login ) { ?>
933 <p id="nav">
934 <?php if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ) ) ) :
935      if ( get_option( 'users_can_register' ) ) :
936           $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
937
938           /** This filter is documented in wp-includes/general-template.php */
939           echo apply_filters( 'register', $registration_url ) . ' | ';
940      endif;
941      ?>
942      <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?' ); ?></a>
943 <?php endif; ?>
944 </p>
945 <?php } ?>
946
947 <script type="text/javascript">
948 function wp_attempt_focus(){