Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MasterHans/774c033b98fdefcf512a199e31b76873 to your computer and use it in GitHub Desktop.
Save MasterHans/774c033b98fdefcf512a199e31b76873 to your computer and use it in GitHub Desktop.
// add text to template in woocommerce_email_before_order_table hook
function filter_woocommerce_email_before_table( $order, $is_admin_email ) {
// make filter magic happen here...
echo '<h1><strong>Discount used </h1>';
};
add_action( 'woocommerce_email_before_order_table', 'filter_woocommerce_email_before_table', 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment