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 |
---|---|
852 | <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> |
853 | <?php |
854 |
|
855 | if ( get_option( 'users_can_register' ) ) { |
856 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
857 |
|
858 | echo esc_html( $login_link_separator ); |
859 |
|
860 | /** This filter is documented in wp-includes/general-template.php */ |
861 | echo apply_filters( 'register', $registration_url ); |
862 | } |
863 |
|
864 | ?> |
865 | </p> |
866 | <?php |
867 |
|
868 | login_footer( 'user_login' ); |
869 | break; |
870 |
|
Line | Code |
998 | <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> |
999 | <?php |
1000 |
|
1001 | if ( get_option( 'users_can_register' ) ) { |
1002 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
1003 |
|
1004 | echo esc_html( $login_link_separator ); |
1005 |
|
1006 | /** This filter is documented in wp-includes/general-template.php */ |
1007 | echo apply_filters( 'register', $registration_url ); |
1008 | } |
1009 |
|
1010 | ?> |
1011 | </p> |
1012 | <?php |
1013 |
|
1014 | login_footer( 'pass1' ); |
1015 | break; |
1016 |
|
Line | Code |
1453 | if ( ! $interim_login ) { |
1454 | ?> |
1455 | <p id="nav"> |
1456 | <?php |
1457 |
|
1458 | if ( get_option( 'users_can_register' ) ) { |
1459 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
1460 |
|
1461 | /** This filter is documented in wp-includes/general-template.php */ |
1462 | echo apply_filters( 'register', $registration_url ); |
1463 |
|
1464 | echo esc_html( $login_link_separator ); |
1465 | } |
1466 |
|
1467 | ?> |
1468 | <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?' ); ?></a> |
1469 | </p> |
1470 | <?php |
1471 | } |