Commit 58ee5bbe4d0 for woocommerce

commit 58ee5bbe4d04f7a58aa58fdd5e8e992423a69995
Author: Seun Olorunsola <30554163+triple0t@users.noreply.github.com>
Date:   Tue Mar 10 13:01:37 2026 +0100

    Follow up to add reset notification email content (#63607)

    * Add filter for email template HTML in WCTransactionalEmailPostsGenerator

    * Introduced a new filter, 'woocommerce_email_block_template_html', to allow customization of the email template HTML before it is returned. This enhancement provides developers with the ability to modify the email content dynamically.

    * Updated the documentation to reflect the new filter's parameters and usage since version 10.7.0.

    * Add changelog file

diff --git a/plugins/woocommerce/changelog/follow-up-to-wooprd-1019-add-reset-notification-email-content b/plugins/woocommerce/changelog/follow-up-to-wooprd-1019-add-reset-notification-email-content
new file mode 100644
index 00000000000..253d62b8c43
--- /dev/null
+++ b/plugins/woocommerce/changelog/follow-up-to-wooprd-1019-add-reset-notification-email-content
@@ -0,0 +1,4 @@
+Significance: patch
+Type: add
+
+Add `woocommerce_email_block_template_html` filter to allow customization of email block template HTML before it is saved.
diff --git a/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCTransactionalEmailPostsGenerator.php b/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCTransactionalEmailPostsGenerator.php
index 113e5829ca1..762fb938697 100644
--- a/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCTransactionalEmailPostsGenerator.php
+++ b/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCTransactionalEmailPostsGenerator.php
@@ -148,6 +148,15 @@ class WCTransactionalEmailPostsGenerator {
 			);
 		}

+		/**
+		 * Filter the email template HTML.
+		 *
+		 * @param string    $template_html The email template HTML.
+		 * @param \WC_Email $email The email object.
+		 * @since 10.7.0
+		 */
+		$template_html = apply_filters( 'woocommerce_email_block_template_html', $template_html, $email );
+
 		return $template_html;
 	}