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 |
|---|---|
| 556 | </form> |
| 557 | |
| 558 | <p id="nav"> |
| 559 | <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e('Log in') ?></a> |
| 560 | <?php |
| 561 | if ( get_option( 'users_can_register' ) ) : |
| 562 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
| 563 | |
| 564 | /** This filter is documented in wp-includes/general-template.php */ |
| 565 | echo ' | ' . apply_filters( 'register', $registration_url ); |
| 566 | endif; |
| 567 | ?> |
| 568 | </p> |
| 569 | |
| 570 | <?php |
| 571 | login_footer('user_login'); |
| 572 | break; |
| 573 | |
| 574 | case 'resetpass' : |
| Line | Code |
| 669 | </form> |
| 670 | |
| 671 | <p id="nav"> |
| 672 | <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> |
| 673 | <?php |
| 674 | if ( get_option( 'users_can_register' ) ) : |
| 675 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
| 676 | |
| 677 | /** This filter is documented in wp-includes/general-template.php */ |
| 678 | echo ' | ' . apply_filters( 'register', $registration_url ); |
| 679 | endif; |
| 680 | ?> |
| 681 | </p> |
| 682 | |
| 683 | <?php |
| 684 | login_footer('user_pass'); |
| 685 | break; |
| 686 | |
| 687 | case 'register' : |
| Line | Code |
| 934 | </form> |
| 935 | |
| 936 | <?php if ( ! $interim_login ) { ?> |
| 937 | <p id="nav"> |
| 938 | <?php if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ) ) ) : |
| 939 | if ( get_option( 'users_can_register' ) ) : |
| 940 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
| 941 | |
| 942 | /** This filter is documented in wp-includes/general-template.php */ |
| 943 | echo apply_filters( 'register', $registration_url ) . ' | '; |
| 944 | endif; |
| 945 | ?> |
| 946 | <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?' ); ?></a> |
| 947 | <?php endif; ?> |
| 948 | </p> |
| 949 | <?php } ?> |
| 950 | |
| 951 | <script type="text/javascript"> |
| 952 | function wp_attempt_focus(){ |