admin-cancelled-order.php
1 year ago
admin-failed-order.php
1 year ago
admin-new-order.php
1 year ago
admin-payment-gateway-enabled.php
2 months ago
customer-cancelled-order.php
1 year ago
customer-completed-order.php
1 year ago
customer-failed-order.php
1 year ago
customer-fulfillment-created.php
11 months ago
customer-fulfillment-deleted.php
11 months ago
customer-fulfillment-updated.php
1 month ago
customer-invoice.php
1 year ago
customer-new-account.php
1 year ago
customer-note.php
11 months ago
customer-on-hold-order.php
1 year ago
customer-pos-completed-order.php
1 year ago
customer-pos-refunded-order.php
1 year ago
customer-processing-order.php
1 year ago
customer-refunded-order.php
1 year ago
customer-reset-password.php
1 year ago
customer-stock-notification-verified.php
9 months ago
customer-stock-notification-verify.php
9 months ago
customer-stock-notification.php
9 months ago
email-addresses.php
2 years ago
email-customer-details.php
2 years ago
email-downloads.php
2 years ago
email-fulfillment-details.php
11 months ago
email-fulfillment-items.php
1 month ago
email-order-details.php
1 month ago
email-order-items.php
1 month ago
customer-new-account.php
62 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Customer new account email |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/woocommerce/emails/plain/customer-new-account.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 10.0.0 |
| 16 | */ |
| 17 | |
| 18 | use Automattic\WooCommerce\Utilities\FeaturesUtil; |
| 19 | |
| 20 | defined( 'ABSPATH' ) || exit; |
| 21 | |
| 22 | $email_improvements_enabled = FeaturesUtil::feature_is_enabled( 'email_improvements' ); |
| 23 | |
| 24 | echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n"; |
| 25 | echo esc_html( wp_strip_all_tags( $email_heading ) ); |
| 26 | echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n"; |
| 27 | |
| 28 | /* translators: %s: Customer username */ |
| 29 | echo sprintf( esc_html__( 'Hi %s,', 'woocommerce' ), esc_html( $user_login ) ) . "\n\n"; |
| 30 | if ( $email_improvements_enabled ) { |
| 31 | /* translators: %s: Site title */ |
| 32 | echo sprintf( esc_html__( 'Thanks for creating an account on %s. Here’s a copy of your user details.', 'woocommerce' ), esc_html( $blogname ) ) . "\n\n"; |
| 33 | echo "----------------------------------------\n\n"; |
| 34 | /* translators: %s: Username */ |
| 35 | echo sprintf( esc_html__( 'Username: %s.', 'woocommerce' ), esc_html( $user_login ) ) . "\n\n"; |
| 36 | echo "----------------------------------------\n\n"; |
| 37 | echo esc_html__( 'You can access your account area to view orders, change your password, and more via the link below:', 'woocommerce' ) . "\n\n"; |
| 38 | echo esc_html( wc_get_page_permalink( 'myaccount' ) ) . "\n\n"; |
| 39 | } else { |
| 40 | /* translators: %1$s: Site title, %2$s: Username, %3$s: My account link */ |
| 41 | echo sprintf( esc_html__( 'Thanks for creating an account on %1$s. Your username is %2$s. You can access your account area to view orders, change your password, and more at: %3$s', 'woocommerce' ), esc_html( $blogname ), esc_html( $user_login ), esc_html( wc_get_page_permalink( 'myaccount' ) ) ) . "\n\n"; |
| 42 | } |
| 43 | |
| 44 | // Only send the set new password link if the user hasn't set their password during sign-up. |
| 45 | if ( $password_generated && $set_password_url ) { |
| 46 | /* translators: URL follows */ |
| 47 | echo esc_html__( 'To set your password, visit the following address: ', 'woocommerce' ) . "\n\n"; |
| 48 | echo esc_html( $set_password_url ) . "\n\n"; |
| 49 | } |
| 50 | |
| 51 | echo "\n\n----------------------------------------\n\n"; |
| 52 | |
| 53 | /** |
| 54 | * Show user-defined additional content - this is set in each email's settings. |
| 55 | */ |
| 56 | if ( $additional_content ) { |
| 57 | echo esc_html( wp_strip_all_tags( wptexturize( $additional_content ) ) ); |
| 58 | echo "\n\n----------------------------------------\n\n"; |
| 59 | } |
| 60 | |
| 61 | echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) ); |
| 62 |