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