From 72a2c25536d144fd5d470baa18e45c60123eccf4 Mon Sep 17 00:00:00 2001 From: Caleb Burks <19caleb95@gmail.com> Date: Sat, 21 May 2016 10:29:44 -0500 Subject: [PATCH] Add single_product_archive_thumbnail_size filter Add in a filter to allow for custom image sizes w/o needing to override the whole function. --- includes/wc-template-functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/wc-template-functions.php b/includes/wc-template-functions.php index 29277e017fd..5b1c34e7054 100644 --- a/includes/wc-template-functions.php +++ b/includes/wc-template-functions.php @@ -728,6 +728,7 @@ if ( ! function_exists( 'woocommerce_get_product_thumbnail' ) ) { */ function woocommerce_get_product_thumbnail( $size = 'shop_catalog', $deprecated1 = 0, $deprecated2 = 0 ) { global $post; + $size = apply_filters( 'single_product_archive_thumbnail_size', 'shop_catalog' ); if ( has_post_thumbnail() ) { $props = wc_get_product_attachment_props( get_post_thumbnail_id(), $post );