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 |
|---|---|
| 902 | <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> |
| 903 | <?php |
| 904 | |
| 905 | if ( get_option( 'users_can_register' ) ) { |
| 906 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
| 907 | |
| 908 | echo esc_html( $login_link_separator ); |
| 909 | |
| 910 | /** This filter is documented in wp-includes/general-template.php */ |
| 911 | echo apply_filters( 'register', $registration_url ); |
| 912 | } |
| 913 | |
| 914 | ?> |
| 915 | </p> |
| 916 | <?php |
| 917 | |
| 918 | login_footer( 'user_login' ); |
| 919 | break; |
| 920 | |
| Line | Code |
| 1037 | <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> |
| 1038 | <?php |
| 1039 | |
| 1040 | if ( get_option( 'users_can_register' ) ) { |
| 1041 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
| 1042 | |
| 1043 | echo esc_html( $login_link_separator ); |
| 1044 | |
| 1045 | /** This filter is documented in wp-includes/general-template.php */ |
| 1046 | echo apply_filters( 'register', $registration_url ); |
| 1047 | } |
| 1048 | |
| 1049 | ?> |
| 1050 | </p> |
| 1051 | <?php |
| 1052 | |
| 1053 | login_footer( 'user_pass' ); |
| 1054 | break; |
| 1055 | |
| Line | Code |
| 1484 | if ( ! $interim_login ) { |
| 1485 | ?> |
| 1486 | <p id="nav"> |
| 1487 | <?php |
| 1488 | |
| 1489 | if ( get_option( 'users_can_register' ) ) { |
| 1490 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
| 1491 | |
| 1492 | /** This filter is documented in wp-includes/general-template.php */ |
| 1493 | echo apply_filters( 'register', $registration_url ); |
| 1494 | |
| 1495 | echo esc_html( $login_link_separator ); |
| 1496 | } |
| 1497 | |
| 1498 | ?> |
| 1499 | <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?' ); ?></a> |
| 1500 | </p> |
| 1501 | <?php |
| 1502 | } |