Last active
June 8, 2023 12:42
-
-
Save danielbitzer/34a694a32b0c0b6291a8c7ef701588bb to your computer and use it in GitHub Desktop.
Customizing WooCommerce and AutomateWoo email CSS with a filter
This file contains hidden or 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
<?php | |
add_filter( 'woocommerce_email_styles', 'my_filter_woocommerce_email_styles' ); | |
/** | |
* Filter email styles for WooCommerce and AutomateWoo. | |
* | |
* @param string $css | |
* | |
* @return string | |
*/ | |
function my_filter_woocommerce_email_styles( $css ) { | |
$css .= "#template_header { background-color: #7532e4; } "; | |
return $css; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment