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 |
---|---|
893 | <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> |
894 | <?php |
895 |
|
896 | if ( get_option( 'users_can_register' ) ) { |
897 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
898 |
|
899 | echo esc_html( $login_link_separator ); |
900 |
|
901 | /** This filter is documented in wp-includes/general-template.php */ |
902 | echo apply_filters( 'register', $registration_url ); |
903 | } |
904 |
|
905 | ?> |
906 | </p> |
907 | <?php |
908 |
|
909 | login_footer( 'user_login' ); |
910 | break; |
911 |
|
Line | Code |
1028 | <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> |
1029 | <?php |
1030 |
|
1031 | if ( get_option( 'users_can_register' ) ) { |
1032 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
1033 |
|
1034 | echo esc_html( $login_link_separator ); |
1035 |
|
1036 | /** This filter is documented in wp-includes/general-template.php */ |
1037 | echo apply_filters( 'register', $registration_url ); |
1038 | } |
1039 |
|
1040 | ?> |
1041 | </p> |
1042 | <?php |
1043 |
|
1044 | login_footer( 'user_pass' ); |
1045 | break; |
1046 |
|
Line | Code |
1462 | if ( ! $interim_login ) { |
1463 | ?> |
1464 | <p id="nav"> |
1465 | <?php |
1466 |
|
1467 | if ( get_option( 'users_can_register' ) ) { |
1468 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
1469 |
|
1470 | /** This filter is documented in wp-includes/general-template.php */ |
1471 | echo apply_filters( 'register', $registration_url ); |
1472 |
|
1473 | echo esc_html( $login_link_separator ); |
1474 | } |
1475 |
|
1476 | ?> |
1477 | <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?' ); ?></a> |
1478 | </p> |
1479 | <?php |
1480 | } |