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 |
|---|---|
| 540 | if ( get_option( 'users_can_register' ) ) : |
| 541 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
| 542 | /** |
| 543 | * Filter the registration URL below the login form. |
| 544 | * |
| 545 | * @since 1.5.2 |
| 546 | * |
| 547 | * @param string $registration_url Registration URL. |
| 548 | */ |
| 549 | echo ' | ' . apply_filters( 'register', $registration_url ); |
| 550 | endif; |
| 551 | ?> |
| 552 | </p> |
| 553 | |
| 554 | <?php |
| 555 | login_footer('user_login'); |
| 556 | break; |
| 557 | |
| 558 | case 'resetpass' : |
| Line | Code |
| 614 | <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e('Reset Password'); ?>" /></p> |
| 615 | </form> |
| 616 | |
| 617 | <p id="nav"> |
| 618 | <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> |
| 619 | <?php |
| 620 | if ( get_option( 'users_can_register' ) ) : |
| 621 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
| 622 | /** This filter is documented in wp-login.php */ |
| 623 | echo ' | ' . apply_filters( 'register', $registration_url ); |
| 624 | endif; |
| 625 | ?> |
| 626 | </p> |
| 627 | |
| 628 | <?php |
| 629 | login_footer('user_pass'); |
| 630 | break; |
| 631 | |
| 632 | case 'register' : |
| Line | Code |
| 864 | </p> |
| 865 | </form> |
| 866 | |
| 867 | <?php if ( ! $interim_login ) { ?> |
| 868 | <p id="nav"> |
| 869 | <?php if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ) ) ) : |
| 870 | if ( get_option( 'users_can_register' ) ) : |
| 871 | $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); |
| 872 | /** This filter is documented in wp-login.php */ |
| 873 | echo apply_filters( 'register', $registration_url ) . ' | '; |
| 874 | endif; |
| 875 | ?> |
| 876 | <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>" title="<?php esc_attr_e( 'Password Lost and Found' ); ?>"><?php _e( 'Lost your password?' ); ?></a> |
| 877 | <?php endif; ?> |
| 878 | </p> |
| 879 | <?php } ?> |
| 880 | |
| 881 | <script type="text/javascript"> |
| 882 | function wp_attempt_focus(){ |