woocommerce_email_block_template_html
Filter the email template HTML.
Usage
add_filter( 'woocommerce_email_block_template_html', 'wp_kama_woocommerce_email_block_template_html_filter', 10, 2 );
/**
* Function for `woocommerce_email_block_template_html` filter-hook.
*
* @param string $template_html The email template HTML.
* @param \WC_Email $email The email object.
*
* @return string
*/
function wp_kama_woocommerce_email_block_template_html_filter( $template_html, $email ){
// filter...
return $template_html;
}
- $template_html(string)
- The email template HTML.
- $email(\WC_Email)
- The email object.
Changelog
| Since 10.7.0 | Introduced. |
Where the hook is called
woocommerce_email_block_template_html
woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCTransactionalEmailPostsGenerator.php 158
$template_html = apply_filters( 'woocommerce_email_block_template_html', $template_html, $email );