Created
June 24, 2021 11:15
-
-
Save plugin-republic/74dd70f1e55cd935e03b3dfdaab1d8b1 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
<?php | |
/** | |
* Set max image width in order emails | |
*/ | |
function prefix_set_max_image_width_emails( $css, $email ) { | |
$css .= ' | |
img { max-width: 150px } | |
'; | |
return $css; | |
} | |
add_filter( 'woocommerce_email_styles', 'prefix_set_max_image_width_emails', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment