Created
July 10, 2022 20:02
-
-
Save MasterHans/774c033b98fdefcf512a199e31b76873 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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