add product thumbnail to checkout page only and include variation name
You can use the conditional checks to simply build a new return value for the filter. So run the filter once and put all your code in there. Your second example doesn’t really make sense because no matter what, you’re returning $name, can you explain that more? add_filter( ‘woocommerce_cart_item_name’, ‘cart_variation_description’, 20, 3); function wpse306625_cart_variation_description( $name, … Read more