Add product images to email order tables

This filter enables 100 × 100 pixel product images in WooCommerce order tables. It affects both AutomateWoo and standard WooCommerce HTML emails.

Developer note:

Add custom PHP in a small custom plugin or child theme, and test it on a staging site before production. This example requires ongoing maintenance when extension APIs change.

functions.php

<?php

add_filter( 'woocommerce_email_order_items_args', 'my_store_email_order_item_images' );

/**
 * Show product images in email order tables.
 *
 * @param array $args Email order-item arguments.
 * @return array
 */
function my_store_email_order_item_images( $args ) {
	$args['show_image'] = true;
	$args['image_size'] = array( 100, 100 );

	return $args;
}
Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.