Include link in new customer account email, closes #11379

This commit is contained in:
Claudio Sanches 2016-07-07 17:54:49 -03:00
parent a0c9b65fcb
commit 2493cb995a
1 changed files with 4 additions and 4 deletions

View File

@ -24,14 +24,14 @@ if ( ! defined( 'ABSPATH' ) ) {
<?php do_action( 'woocommerce_email_header', $email_heading, $email ); ?> <?php do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
<p><?php printf( __( "Thanks for creating an account on %s. Your username is <strong>%s</strong>", 'woocommerce' ), esc_html( $blogname ), esc_html( $user_login ) ); ?></p> <p><?php printf( __( 'Thanks for creating an account on %s. Your username is <strong>%s</strong>', 'woocommerce' ), esc_html( $blogname ), esc_html( $user_login ) ); ?></p>
<?php if ( 'yes' === get_option( 'woocommerce_registration_generate_password' ) && $password_generated ) : ?> <?php if ( 'yes' === get_option( 'woocommerce_registration_generate_password' ) && $password_generated ) : ?>
<p><?php printf( __( "Your password has been automatically generated: <strong>%s</strong>", 'woocommerce' ), esc_html( $user_pass ) ); ?></p> <p><?php printf( __( 'Your password has been automatically generated: <strong>%s</strong>', 'woocommerce' ), esc_html( $user_pass ) ); ?></p>
<?php endif; ?> <?php endif; ?>
<p><?php printf( __( 'You can access your account area to view your orders and change your password here: %s.', 'woocommerce' ), wc_get_page_permalink( 'myaccount' ) ); ?></p> <p><?php printf( __( 'You can access your account area to view your orders and change your password here: %s.', 'woocommerce' ), '<a href="' . esc_url( wc_get_page_permalink( 'myaccount' ) ) . '">' . __( 'My Account' ) . '</a>' ); ?></p>
<?php do_action( 'woocommerce_email_footer', $email ); ?> <?php do_action( 'woocommerce_email_footer', $email );