Skip to content

Instantly share code, notes, and snippets.

@danielbitzer
Last active May 18, 2023 15:31
Show Gist options
  • Save danielbitzer/3a44f7ca542918678d2943c6c9ba9016 to your computer and use it in GitHub Desktop.
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
<?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