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