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