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 |
|---|---|
| 630 | <p id="nav"> |
| 631 | <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> |
| 632 | <?php |
| 633 | if ( get_option( 'users_can_register' ) ) : |
| 634 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
| 635 | |
| 636 | echo esc_html( $login_link_separator ); |
| 637 | |
| 638 | /** This filter is documented in wp-includes/general-template.php */ |
| 639 | echo apply_filters( 'register', $registration_url ); |
| 640 | endif; |
| 641 | ?> |
| 642 | </p> |
| 643 | |
| 644 | <?php |
| 645 | login_footer( 'user_login' ); |
| 646 | |
| 647 | break; |
| 648 | |
| Line | Code |
| 757 | <p id="nav"> |
| 758 | <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> |
| 759 | <?php |
| 760 | if ( get_option( 'users_can_register' ) ) : |
| 761 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
| 762 | |
| 763 | echo esc_html( $login_link_separator ); |
| 764 | |
| 765 | /** This filter is documented in wp-includes/general-template.php */ |
| 766 | echo apply_filters( 'register', $registration_url ); |
| 767 | endif; |
| 768 | ?> |
| 769 | </p> |
| 770 | |
| 771 | <?php |
| 772 | login_footer( 'user_pass' ); |
| 773 | |
| 774 | break; |
| 775 | |
| Line | Code |
| 1101 | |
| 1102 | <?php if ( ! $interim_login ) { ?> |
| 1103 | <p id="nav"> |
| 1104 | <?php |
| 1105 | if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ) ) ) : |
| 1106 | if ( get_option( 'users_can_register' ) ) : |
| 1107 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
| 1108 | |
| 1109 | /** This filter is documented in wp-includes/general-template.php */ |
| 1110 | echo apply_filters( 'register', $registration_url ); |
| 1111 | |
| 1112 | echo esc_html( $login_link_separator ); |
| 1113 | endif; |
| 1114 | ?> |
| 1115 | <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?' ); ?></a> |
| 1116 | <?php endif; ?> |
| 1117 | </p> |
| 1118 | <?php } ?> |
| 1119 | |