Skip to content

Instantly share code, notes, and snippets.


tommcfarlin/00-add-custom-line.php Secret

Last active Dec 12, 2016
What would you like to do?
[WordPress] Customizing WooCommerce Emails
add_action( 'woocommerce_email_before_order_table', 'acme_email_message', 20 );
* Adds a single line above the table of purchases in a WooCommerce email.
function acme_email_message() {
$html = '<p>';
$html .= 'Access your additional information on your My Account page.';
$html .= '</p>';
$allowed_html = array(
'p' => array(),
echo wp_kses( $html, $allowed_html );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment