Merge pull request #24323 from woocommerce/fix/24316

Add missing additional content output to new account email
This commit is contained in:
Vedanshu Jain 2019-08-05 17:07:57 +05:30 committed by GitHub
commit 623f296a2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 4 deletions

View File

@ -12,7 +12,7 @@
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce/Templates/Emails
* @version 3.6.0
* @version 3.7.0
*/
if ( ! defined( 'ABSPATH' ) ) {

View File

@ -12,7 +12,7 @@
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce/Templates/Emails
* @version 3.5.2
* @version 3.7.0
*/
defined( 'ABSPATH' ) || exit;
@ -28,7 +28,12 @@ do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
<p><?php printf( esc_html__( 'Your password has been automatically generated: %s', 'woocommerce' ), '<strong>' . esc_html( $user_pass ) . '</strong>' ); ?></p>
<?php endif; ?>
<p><?php esc_html_e( 'We look forward to seeing you soon.', 'woocommerce' ); ?></p>
<?php
/**
* Show user-defined additonal content - this is set in each email's settings.
*/
if ( $additional_content ) {
echo wp_kses_post( wpautop( wptexturize( $additional_content ) ) );
}
do_action( 'woocommerce_email_footer', $email );