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 |
|---|---|
| 568 | </form> |
| 569 | |
| 570 | <p id="nav"> |
| 571 | <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e('Log in') ?></a> |
| 572 | <?php |
| 573 | if ( get_option( 'users_can_register' ) ) : |
| 574 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
| 575 | |
| 576 | /** This filter is documented in wp-includes/general-template.php */ |
| 577 | echo ' | ' . apply_filters( 'register', $registration_url ); |
| 578 | endif; |
| 579 | ?> |
| 580 | </p> |
| 581 | |
| 582 | <?php |
| 583 | login_footer('user_login'); |
| 584 | break; |
| 585 | |
| 586 | case 'resetpass' : |
| Line | Code |
| 673 | </form> |
| 674 | |
| 675 | <p id="nav"> |
| 676 | <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> |
| 677 | <?php |
| 678 | if ( get_option( 'users_can_register' ) ) : |
| 679 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
| 680 | |
| 681 | /** This filter is documented in wp-includes/general-template.php */ |
| 682 | echo ' | ' . apply_filters( 'register', $registration_url ); |
| 683 | endif; |
| 684 | ?> |
| 685 | </p> |
| 686 | |
| 687 | <?php |
| 688 | login_footer('user_pass'); |
| 689 | break; |
| 690 | |
| 691 | case 'register' : |
| Line | Code |
| 930 | </form> |
| 931 | |
| 932 | <?php if ( ! $interim_login ) { ?> |
| 933 | <p id="nav"> |
| 934 | <?php if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ) ) ) : |
| 935 | if ( get_option( 'users_can_register' ) ) : |
| 936 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
| 937 | |
| 938 | /** This filter is documented in wp-includes/general-template.php */ |
| 939 | echo apply_filters( 'register', $registration_url ) . ' | '; |
| 940 | endif; |
| 941 | ?> |
| 942 | <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>" title="<?php esc_attr_e( 'Password Lost and Found' ); ?>"><?php _e( 'Lost your password?' ); ?></a> |
| 943 | <?php endif; ?> |
| 944 | </p> |
| 945 | <?php } ?> |
| 946 | |
| 947 | <script type="text/javascript"> |
| 948 | function wp_attempt_focus(){ |