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 |
---|---|
849 | <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> |
850 | <?php |
851 |
|
852 | if ( get_option( 'users_can_register' ) ) { |
853 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
854 |
|
855 | echo esc_html( $login_link_separator ); |
856 |
|
857 | /** This filter is documented in wp-includes/general-template.php */ |
858 | echo apply_filters( 'register', $registration_url ); |
859 | } |
860 |
|
861 | ?> |
862 | </p> |
863 | <?php |
864 |
|
865 | login_footer( 'user_login' ); |
866 | break; |
867 |
|
Line | Code |
984 | <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> |
985 | <?php |
986 |
|
987 | if ( get_option( 'users_can_register' ) ) { |
988 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
989 |
|
990 | echo esc_html( $login_link_separator ); |
991 |
|
992 | /** This filter is documented in wp-includes/general-template.php */ |
993 | echo apply_filters( 'register', $registration_url ); |
994 | } |
995 |
|
996 | ?> |
997 | </p> |
998 | <?php |
999 |
|
1000 | login_footer( 'user_pass' ); |
1001 | break; |
1002 |
|
Line | Code |
1386 | ?> |
1387 | <p id="nav"> |
1388 | <?php |
1389 |
|
1390 | if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ), true ) ) { |
1391 | if ( get_option( 'users_can_register' ) ) { |
1392 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
1393 |
|
1394 | /** This filter is documented in wp-includes/general-template.php */ |
1395 | echo apply_filters( 'register', $registration_url ); |
1396 |
|
1397 | echo esc_html( $login_link_separator ); |
1398 | } |
1399 |
|
1400 | ?> |
1401 | <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?' ); ?></a> |
1402 | <?php |
1403 | } |
1404 |
|