form-lost-password.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * Lost password form
  4. *
  5. * This template can be overridden by copying it to yourtheme/woocommerce/myaccount/form-lost-password.php.
  6. *
  7. * HOWEVER, on occasion WooCommerce will need to update template files and you
  8. * (the theme developer) will need to copy the new files to your theme to
  9. * maintain compatibility. We try to do this as little as possible, but it does
  10. * happen. When this occurs the version of the template file will be bumped and
  11. * the readme will list any important changes.
  12. *
  13. * @see https://docs.woocommerce.com/document/template-structure/
  14. * @package WooCommerce/Templates
  15. * @version 3.4.0
  16. */
  17. defined( 'ABSPATH' ) || exit;
  18. wc_print_notices(); ?>
  19. <form method="post" class="woocommerce-ResetPassword lost_reset_password">
  20. <p><?php echo apply_filters( 'woocommerce_lost_password_message', esc_html__( 'Lost your password? Please enter your username or email address. You will receive a link to create a new password via email.', 'woocommerce' ) ); ?></p><?php // @codingStandardsIgnoreLine ?>
  21. <p class="woocommerce-form-row woocommerce-form-row--first form-row form-row-first">
  22. <label for="user_login"><?php esc_html_e( 'Username or email', 'woocommerce' ); ?></label>
  23. <input class="woocommerce-Input woocommerce-Input--text input-text" type="text" name="user_login" id="user_login" autocomplete="username" />
  24. </p>
  25. <div class="clear"></div>
  26. <?php do_action( 'woocommerce_lostpassword_form' ); ?>
  27. <p class="woocommerce-form-row form-row">
  28. <input type="hidden" name="wc_reset_password" value="true" />
  29. <button type="submit" class="woocommerce-Button button" value="<?php esc_attr_e( 'Reset password', 'woocommerce' ); ?>"><?php esc_html_e( 'Reset password', 'woocommerce' ); ?></button>
  30. </p>
  31. <?php wp_nonce_field( 'lost_password', 'woocommerce-lost-password-nonce' ); ?>
  32. </form>