How to add support for third party plugin in the Product Loops/Shop Design

Product Loops is a closed up system and doesn’t work with any of the mentioned plugins. If you want to extend the product loops to show those you will have to use actions and hooks. Here’s a sample that integrates the YITH Wishlist plugin.

// you can change priority here to move the element up or down
add_action( 'product_loops_content', 'add_wishlist_support_3u4hb34iu4fgh', 50 );

function add_wishlist_support_3u4hb34iu4fgh() {
  echo do_shortcode('[yith_wcwl_add_to_wishlist]');

Leave a Reply

Your email address will not be published. Required fields are marked *