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 *

2 comments on “How to add support for third party plugin in the Product Loops/Shop Design”

  1. Hi,
    I have an issue on the shop page of my website. As it is shown in the shop design feature when we click on color variation the image gonna changed in shop page. But it’s not working on my website. Can you please define why it’s not working or suggest any solutions for this issue.
    Thanks