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
548 </form>
549
550 <p id="nav">
551 <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e('Log in') ?></a>
552 <?php
553 if ( get_option( 'users_can_register' ) ) :
554      $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
555
556      /** This filter is documented in wp-includes/general-template.php */
557      echo ' | ' . apply_filters( 'register', $registration_url );
558 endif;
559 ?>
560 </p>
561
562 <?php
563 login_footer('user_login');
564 break;
565
566 case 'resetpass' :
 
Line Code
653 </form>
654
655 <p id="nav">
656 <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>
657 <?php
658 if ( get_option( 'users_can_register' ) ) :
659      $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
660
661      /** This filter is documented in wp-includes/general-template.php */
662      echo ' | ' . apply_filters( 'register', $registration_url );
663 endif;
664 ?>
665 </p>
666
667 <?php
668 login_footer('user_pass');
669 break;
670
671 case 'register' :
 
Line Code
904 </form>
905
906 <?php if ( ! $interim_login ) { ?>
907 <p id="nav">
908 <?php if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ) ) ) :
909      if ( get_option( 'users_can_register' ) ) :
910           $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
911
912           /** This filter is documented in wp-includes/general-template.php */
913           echo apply_filters( 'register', $registration_url ) . ' | ';
914      endif;
915      ?>
916      <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>" title="<?php esc_attr_e( 'Password Lost and Found' ); ?>"><?php _e( 'Lost your password?' ); ?></a>
917 <?php endif; ?>
918 </p>
919 <?php } ?>
920
921 <script type="text/javascript">
922 function wp_attempt_focus(){