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 |
|---|---|
| 919 | <a class="wp-login-log-in" href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> |
| 920 | <?php |
| 921 | |
| 922 | if ( get_option( 'users_can_register' ) ) { |
| 923 | $registration_url = sprintf( '<a class="wp-login-register" href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
| 924 | |
| 925 | echo esc_html( $login_link_separator ); |
| 926 | |
| 927 | /** This filter is documented in wp-includes/general-template.php */ |
| 928 | echo apply_filters( 'register', $registration_url ); |
| 929 | } |
| 930 | |
| 931 | ?> |
| 932 | </p> |
| 933 | <?php |
| 934 | |
| 935 | login_footer( 'user_login' ); |
| 936 | break; |
| 937 | |
| Line | Code |
| 1083 | <a class="wp-login-log-in" href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> |
| 1084 | <?php |
| 1085 | |
| 1086 | if ( get_option( 'users_can_register' ) ) { |
| 1087 | $registration_url = sprintf( '<a class="wp-login-register" href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
| 1088 | |
| 1089 | echo esc_html( $login_link_separator ); |
| 1090 | |
| 1091 | /** This filter is documented in wp-includes/general-template.php */ |
| 1092 | echo apply_filters( 'register', $registration_url ); |
| 1093 | } |
| 1094 | |
| 1095 | ?> |
| 1096 | </p> |
| 1097 | <?php |
| 1098 | |
| 1099 | login_footer( 'pass1' ); |
| 1100 | break; |
| 1101 | |
| Line | Code |
| 1565 | if ( ! $interim_login ) { |
| 1566 | ?> |
| 1567 | <p id="nav"> |
| 1568 | <?php |
| 1569 | |
| 1570 | if ( get_option( 'users_can_register' ) ) { |
| 1571 | $registration_url = sprintf( '<a class="wp-login-register" href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
| 1572 | |
| 1573 | /** This filter is documented in wp-includes/general-template.php */ |
| 1574 | echo apply_filters( 'register', $registration_url ); |
| 1575 | |
| 1576 | echo esc_html( $login_link_separator ); |
| 1577 | } |
| 1578 | |
| 1579 | $html_link = sprintf( '<a class="wp-login-lost-password" href="%s">%s</a>', esc_url( wp_lostpassword_url() ), __( 'Lost your password?' ) ); |
| 1580 | |
| 1581 | /** |
| 1582 | * Filters the link that allows the user to reset the lost password. |
| 1583 | * |