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
546 if ( get_option( 'users_can_register' ) ) :
547      $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
548      /**
549       * Filter the registration URL below the login form.
550       *
551       * @since 1.5.0
552       *
553       * @param string $registration_url Registration URL.
554       */
555      echo ' | ' . apply_filters( 'register', $registration_url );
556 endif;
557 ?>
558 </p>
559
560 <?php
561 login_footer('user_login');
562 break;
563
564 case 'resetpass' :
 
Line Code
620      <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e('Reset Password'); ?>" /></p>
621 </form>
622
623 <p id="nav">
624 <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>
625 <?php
626 if ( get_option( 'users_can_register' ) ) :
627      $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
628      /** This filter is documented in wp-login.php */
629      echo ' | ' . apply_filters( 'register', $registration_url );
630 endif;
631 ?>
632 </p>
633
634 <?php
635 login_footer('user_pass');
636 break;
637
638 case 'register' :
 
Line Code
870      </p>
871 </form>
872
873 <?php if ( ! $interim_login ) { ?>
874 <p id="nav">
875 <?php if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ) ) ) :
876      if ( get_option( 'users_can_register' ) ) :
877           $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
878           /** This filter is documented in wp-login.php */
879           echo apply_filters( 'register', $registration_url ) . ' | ';
880      endif;
881      ?>
882      <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>" title="<?php esc_attr_e( 'Password Lost and Found' ); ?>"><?php _e( 'Lost your password?' ); ?></a>
883 <?php endif; ?>
884 </p>
885 <?php } ?>
886
887 <script type="text/javascript">
888 function wp_attempt_focus(){