WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
This hook occurs 3 times in this file.
Line | Code |
---|---|
545 | if ( get_option( 'users_can_register' ) ) : |
546 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
547 | /** |
548 | * Filter the registration URL below the login form. |
549 | * |
550 | * @since 1.5.0 |
551 | * |
552 | * @param string $registration_url Registration URL. |
553 | */ |
554 | echo ' | ' . apply_filters( 'register', $registration_url ); |
555 | endif; |
556 | ?> |
557 | </p> |
558 |
|
559 | <?php |
560 | login_footer('user_login'); |
561 | break; |
562 |
|
563 | case 'resetpass' : |
Line | Code |
630 | <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> |
631 | </form> |
632 |
|
633 | <p id="nav"> |
634 | <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> |
635 | <?php |
636 | if ( get_option( 'users_can_register' ) ) : |
637 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
638 | /** This filter is documented in wp-login.php */ |
639 | echo ' | ' . apply_filters( 'register', $registration_url ); |
640 | endif; |
641 | ?> |
642 | </p> |
643 |
|
644 | <?php |
645 | login_footer('user_pass'); |
646 | break; |
647 |
|
648 | case 'register' : |
Line | Code |
887 | </p> |
888 | </form> |
889 |
|
890 | <?php if ( ! $interim_login ) { ?> |
891 | <p id="nav"> |
892 | <?php if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ) ) ) : |
893 | if ( get_option( 'users_can_register' ) ) : |
894 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
895 | /** This filter is documented in wp-login.php */ |
896 | echo apply_filters( 'register', $registration_url ) . ' | '; |
897 | endif; |
898 | ?> |
899 | <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>" title="<?php esc_attr_e( 'Password Lost and Found' ); ?>"><?php _e( 'Lost your password?' ); ?></a> |
900 | <?php endif; ?> |
901 | </p> |
902 | <?php } ?> |
903 |
|
904 | <script type="text/javascript"> |
905 | function wp_attempt_focus(){ |