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 |
---|---|
593 | <p id="nav"> |
594 | <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e('Log in') ?></a> |
595 | <?php |
596 | if ( get_option( 'users_can_register' ) ) : |
597 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
598 |
|
599 | echo esc_html( $login_link_separator ); |
600 |
|
601 | /** This filter is documented in wp-includes/general-template.php */ |
602 | echo apply_filters( 'register', $registration_url ); |
603 | endif; |
604 | ?> |
605 | </p> |
606 |
|
607 | <?php |
608 | login_footer('user_login'); |
609 |
|
610 | break; |
611 |
|
Line | Code |
718 | <p id="nav"> |
719 | <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> |
720 | <?php |
721 | if ( get_option( 'users_can_register' ) ) : |
722 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
723 |
|
724 | echo esc_html( $login_link_separator ); |
725 |
|
726 | /** This filter is documented in wp-includes/general-template.php */ |
727 | echo apply_filters( 'register', $registration_url ); |
728 | endif; |
729 | ?> |
730 | </p> |
731 |
|
732 | <?php |
733 | login_footer('user_pass'); |
734 |
|
735 | break; |
736 |
|
Line | Code |
1032 | </form> |
1033 |
|
1034 | <?php if ( ! $interim_login ) { ?> |
1035 | <p id="nav"> |
1036 | <?php if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ) ) ) : |
1037 | if ( get_option( 'users_can_register' ) ) : |
1038 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
1039 |
|
1040 | /** This filter is documented in wp-includes/general-template.php */ |
1041 | echo apply_filters( 'register', $registration_url ); |
1042 |
|
1043 | echo esc_html( $login_link_separator ); |
1044 | endif; |
1045 | ?> |
1046 | <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?' ); ?></a> |
1047 | <?php endif; ?> |
1048 | </p> |
1049 | <?php } ?> |
1050 |
|