customer-verify-email.php
| 1 | <?php |
| 2 | /** |
| 3 | * Customer verify email address email (plain text) |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/woocommerce/emails/plain/customer-verify-email.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://woocommerce.com/document/template-structure/ |
| 14 | * @package WooCommerce\Templates\Emails\Plain |
| 15 | * @version 11.0.0 |
| 16 | * |
| 17 | * @var string $email_heading Email heading. |
| 18 | * @var string $additional_content Additional content below the body. |
| 19 | * @var string $user_display_name Customer's display name. |
| 20 | * @var string $user_email Email address being confirmed. |
| 21 | * @var string $verify_url One-time verification URL. |
| 22 | * @var string $blogname Site name. |
| 23 | * @var bool $sent_to_admin Whether sent to admin. |
| 24 | * @var bool $plain_text Whether plain-text variant. |
| 25 | * @var \WC_Email $email Email object. |
| 26 | */ |
| 27 | |
| 28 | defined( 'ABSPATH' ) || exit; |
| 29 | |
| 30 | echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n"; |
| 31 | echo esc_html( wp_strip_all_tags( $email_heading ) ); |
| 32 | echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n"; |
| 33 | |
| 34 | /* translators: %s: Customer first name, or username if name is not available */ |
| 35 | echo sprintf( esc_html__( 'Hi %s,', 'woocommerce' ), esc_html( $user_display_name ) ) . "\n\n"; |
| 36 | /* translators: %s: the customer's email address. */ |
| 37 | echo sprintf( esc_html__( "Once you've confirmed that %s is your email address, we'll link any past orders to your account.", 'woocommerce' ), esc_html( $user_email ) ) . "\n\n"; |
| 38 | |
| 39 | echo "----------------------------------------\n\n"; |
| 40 | echo esc_url( $verify_url ) . "\n\n"; |
| 41 | echo "----------------------------------------\n\n"; |
| 42 | |
| 43 | echo esc_html__( "If you didn't request this email, there's nothing to worry about, and you can safely ignore it.", 'woocommerce' ) . "\n\n"; |
| 44 | |
| 45 | /** |
| 46 | * Show user-defined additional content - this is set in each email's settings. |
| 47 | */ |
| 48 | if ( $additional_content ) { |
| 49 | echo esc_html( wp_strip_all_tags( wptexturize( $additional_content ) ) ); |
| 50 | echo "\n\n----------------------------------------\n\n"; |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * Filter the email footer text. |
| 55 | * |
| 56 | * @param string $footer_text The footer text. |
| 57 | * @since 2.3.0 |
| 58 | */ |
| 59 | echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) ); |
| 60 |