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 |
|---|---|
| 457 | </p> |
| 458 | <?php do_action('lostpassword_form'); ?> |
| 459 | <input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" /> |
| 460 | <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e('Get New Password'); ?>" /></p> |
| 461 | </form> |
| 462 | |
| 463 | <p id="nav"> |
| 464 | <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e('Log in') ?></a> |
| 465 | <?php if ( get_option( 'users_can_register' ) ) : ?> |
| 466 | | <?php echo apply_filters( 'register', sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ) ); ?> |
| 467 | <?php endif; ?> |
| 468 | </p> |
| 469 | |
| 470 | <?php |
| 471 | login_footer('user_login'); |
| 472 | break; |
| 473 | |
| 474 | case 'resetpass' : |
| 475 | case 'rp' : |
| Line | Code |
| 516 | <p class="description indicator-hint"><?php _e('Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ & ).'); ?></p> |
| 517 | |
| 518 | <br class="clear" /> |
| 519 | <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> |
| 520 | </form> |
| 521 | |
| 522 | <p id="nav"> |
| 523 | <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> |
| 524 | <?php if ( get_option( 'users_can_register' ) ) : ?> |
| 525 | | <?php echo apply_filters( 'register', sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ) ); ?> |
| 526 | <?php endif; ?> |
| 527 | </p> |
| 528 | |
| 529 | <?php |
| 530 | login_footer('user_pass'); |
| 531 | break; |
| 532 | |
| 533 | case 'register' : |
| 534 | if ( is_multisite() ) { |
| Line | Code |
| 714 | <?php endif; ?> |
| 715 | <input type="hidden" name="testcookie" value="1" /> |
| 716 | </p> |
| 717 | </form> |
| 718 | |
| 719 | <?php if ( ! $interim_login ) { ?> |
| 720 | <p id="nav"> |
| 721 | <?php if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ) ) ) : ?> |
| 722 | <?php if ( get_option( 'users_can_register' ) ) : ?> |
| 723 | <?php echo apply_filters( 'register', sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ) ); ?> | |
| 724 | <?php endif; ?> |
| 725 | <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>" title="<?php esc_attr_e( 'Password Lost and Found' ); ?>"><?php _e( 'Lost your password?' ); ?></a> |
| 726 | <?php endif; ?> |
| 727 | </p> |
| 728 | <?php } ?> |
| 729 | |
| 730 | <script type="text/javascript"> |
| 731 | function wp_attempt_focus(){ |
| 732 | setTimeout( function(){ try{ |