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 |
---|---|
905 | <a class="wp-login-log-in" href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> |
906 | <?php |
907 |
|
908 | if ( get_option( 'users_can_register' ) ) { |
909 | $registration_url = sprintf( '<a class="wp-login-register" href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
910 |
|
911 | echo esc_html( $login_link_separator ); |
912 |
|
913 | /** This filter is documented in wp-includes/general-template.php */ |
914 | echo apply_filters( 'register', $registration_url ); |
915 | } |
916 |
|
917 | ?> |
918 | </p> |
919 | <?php |
920 |
|
921 | login_footer( 'user_login' ); |
922 | break; |
923 |
|
Line | Code |
1069 | <a class="wp-login-log-in" href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> |
1070 | <?php |
1071 |
|
1072 | if ( get_option( 'users_can_register' ) ) { |
1073 | $registration_url = sprintf( '<a class="wp-login-register" href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
1074 |
|
1075 | echo esc_html( $login_link_separator ); |
1076 |
|
1077 | /** This filter is documented in wp-includes/general-template.php */ |
1078 | echo apply_filters( 'register', $registration_url ); |
1079 | } |
1080 |
|
1081 | ?> |
1082 | </p> |
1083 | <?php |
1084 |
|
1085 | login_footer( 'pass1' ); |
1086 | break; |
1087 |
|
Line | Code |
1548 | if ( ! $interim_login ) { |
1549 | ?> |
1550 | <p id="nav"> |
1551 | <?php |
1552 |
|
1553 | if ( get_option( 'users_can_register' ) ) { |
1554 | $registration_url = sprintf( '<a class="wp-login-register" href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
1555 |
|
1556 | /** This filter is documented in wp-includes/general-template.php */ |
1557 | echo apply_filters( 'register', $registration_url ); |
1558 |
|
1559 | echo esc_html( $login_link_separator ); |
1560 | } |
1561 |
|
1562 | $html_link = sprintf( '<a class="wp-login-lost-password" href="%s">%s</a>', esc_url( wp_lostpassword_url() ), __( 'Lost your password?' ) ); |
1563 |
|
1564 | /** |
1565 | * Filters the link that allows the user to reset the lost password. |
1566 | * |