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 |
|---|---|
| 624 | <p id="nav"> |
| 625 | <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> |
| 626 | <?php |
| 627 | if ( get_option( 'users_can_register' ) ) : |
| 628 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
| 629 | |
| 630 | echo esc_html( $login_link_separator ); |
| 631 | |
| 632 | /** This filter is documented in wp-includes/general-template.php */ |
| 633 | echo apply_filters( 'register', $registration_url ); |
| 634 | endif; |
| 635 | ?> |
| 636 | </p> |
| 637 | |
| 638 | <?php |
| 639 | login_footer( 'user_login' ); |
| 640 | |
| 641 | break; |
| 642 | |
| Line | Code |
| 751 | <p id="nav"> |
| 752 | <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> |
| 753 | <?php |
| 754 | if ( get_option( 'users_can_register' ) ) : |
| 755 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
| 756 | |
| 757 | echo esc_html( $login_link_separator ); |
| 758 | |
| 759 | /** This filter is documented in wp-includes/general-template.php */ |
| 760 | echo apply_filters( 'register', $registration_url ); |
| 761 | endif; |
| 762 | ?> |
| 763 | </p> |
| 764 | |
| 765 | <?php |
| 766 | login_footer( 'user_pass' ); |
| 767 | |
| 768 | break; |
| 769 | |
| Line | Code |
| 1090 | |
| 1091 | <?php if ( ! $interim_login ) { ?> |
| 1092 | <p id="nav"> |
| 1093 | <?php |
| 1094 | if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ) ) ) : |
| 1095 | if ( get_option( 'users_can_register' ) ) : |
| 1096 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
| 1097 | |
| 1098 | /** This filter is documented in wp-includes/general-template.php */ |
| 1099 | echo apply_filters( 'register', $registration_url ); |
| 1100 | |
| 1101 | echo esc_html( $login_link_separator ); |
| 1102 | endif; |
| 1103 | ?> |
| 1104 | <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?' ); ?></a> |
| 1105 | <?php endif; ?> |
| 1106 | </p> |
| 1107 | <?php } ?> |
| 1108 | |