I am trying to setup CDN on woocommerce theme. Here’s what I have added to the functions.php
add_filter( 'woocommerce_single_product_image_html', 'replace_content' );
add_filter( 'woocommerce_single_product_image_thumbnail_html', 'replace_content' );
add_filter( 'woocommerce_product_thumbnails', 'replace_content' );
The above code works fine on single product page but not on woocommerce widgets and shop page.
How can I use add_filter to apply the CDN url to all images loaded by woocommerce?