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 |
---|---|
854 | <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> |
855 | <?php |
856 |
|
857 | if ( get_option( 'users_can_register' ) ) { |
858 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
859 |
|
860 | echo esc_html( $login_link_separator ); |
861 |
|
862 | /** This filter is documented in wp-includes/general-template.php */ |
863 | echo apply_filters( 'register', $registration_url ); |
864 | } |
865 |
|
866 | ?> |
867 | </p> |
868 | <?php |
869 |
|
870 | login_footer( 'user_login' ); |
871 | break; |
872 |
|
Line | Code |
1000 | <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> |
1001 | <?php |
1002 |
|
1003 | if ( get_option( 'users_can_register' ) ) { |
1004 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
1005 |
|
1006 | echo esc_html( $login_link_separator ); |
1007 |
|
1008 | /** This filter is documented in wp-includes/general-template.php */ |
1009 | echo apply_filters( 'register', $registration_url ); |
1010 | } |
1011 |
|
1012 | ?> |
1013 | </p> |
1014 | <?php |
1015 |
|
1016 | login_footer( 'pass1' ); |
1017 | break; |
1018 |
|
Line | Code |
1468 | if ( ! $interim_login ) { |
1469 | ?> |
1470 | <p id="nav"> |
1471 | <?php |
1472 |
|
1473 | if ( get_option( 'users_can_register' ) ) { |
1474 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
1475 |
|
1476 | /** This filter is documented in wp-includes/general-template.php */ |
1477 | echo apply_filters( 'register', $registration_url ); |
1478 |
|
1479 | echo esc_html( $login_link_separator ); |
1480 | } |
1481 |
|
1482 | $html_link = sprintf( '<a href="%s">%s</a>', esc_url( wp_lostpassword_url() ), __( 'Lost your password?' ) ); |
1483 |
|
1484 | /** |
1485 | * Filters the link that allows the user to reset the lost password. |
1486 | * |