Snippets: Support for WooCommerce YITH Badges

The Total theme customizes the output of the WooCommerce thumbnail. But so does the badges plugin so they conflict. You must remove the theme's thumbnail custom output in order for the badges to show up.

add_action( 'init', function() {
	add_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 );
	remove_action( 'woocommerce_before_shop_loop_item_title', array( 'WPEX_WooCommerce_Config', 'loop_product_thumbnail' ), 10 );
}, 99 );
All PHP snippets should be added via a child theme's functions.php file.