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 |
|---|---|
| 542 | </form> |
| 543 | |
| 544 | <p id="nav"> |
| 545 | <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e('Log in') ?></a> |
| 546 | <?php |
| 547 | if ( get_option( 'users_can_register' ) ) : |
| 548 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
| 549 | |
| 550 | /** This filter is documented in wp-includes/general-template.php */ |
| 551 | echo ' | ' . apply_filters( 'register', $registration_url ); |
| 552 | endif; |
| 553 | ?> |
| 554 | </p> |
| 555 | |
| 556 | <?php |
| 557 | login_footer('user_login'); |
| 558 | break; |
| 559 | |
| 560 | case 'resetpass' : |
| Line | Code |
| 644 | </form> |
| 645 | |
| 646 | <p id="nav"> |
| 647 | <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> |
| 648 | <?php |
| 649 | if ( get_option( 'users_can_register' ) ) : |
| 650 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
| 651 | |
| 652 | /** This filter is documented in wp-includes/general-template.php */ |
| 653 | echo ' | ' . apply_filters( 'register', $registration_url ); |
| 654 | endif; |
| 655 | ?> |
| 656 | </p> |
| 657 | |
| 658 | <?php |
| 659 | login_footer('user_pass'); |
| 660 | break; |
| 661 | |
| 662 | case 'register' : |
| Line | Code |
| 895 | </form> |
| 896 | |
| 897 | <?php if ( ! $interim_login ) { ?> |
| 898 | <p id="nav"> |
| 899 | <?php if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ) ) ) : |
| 900 | if ( get_option( 'users_can_register' ) ) : |
| 901 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
| 902 | |
| 903 | /** This filter is documented in wp-includes/general-template.php */ |
| 904 | echo apply_filters( 'register', $registration_url ) . ' | '; |
| 905 | endif; |
| 906 | ?> |
| 907 | <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>" title="<?php esc_attr_e( 'Password Lost and Found' ); ?>"><?php _e( 'Lost your password?' ); ?></a> |
| 908 | <?php endif; ?> |
| 909 | </p> |
| 910 | <?php } ?> |
| 911 | |
| 912 | <script type="text/javascript"> |
| 913 | function wp_attempt_focus(){ |