Last active
May 18, 2023 15:31
-
-
Save danielbitzer/3a44f7ca542918678d2943c6c9ba9016 to your computer and use it in GitHub Desktop.
Add product images to WooCommerce order emails, also adds images to AutomateWoo order table
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 | |
/** | |
* Add product images to the WooCommerce order table used in HTML emails. | |
*/ | |
add_filter( 'woocommerce_email_order_items_args', function( $args ) { | |
$args['show_image'] = true; | |
$args['image_size'] = array( 100, 100 ); | |
return $args; | |
}, 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment