Skip to content

Instantly share code, notes, and snippets.

@jhimross
Created January 27, 2022 04:51
Show Gist options
  • Save jhimross/51c1be7ebba3af069d983bf6b17f7950 to your computer and use it in GitHub Desktop.
Save jhimross/51c1be7ebba3af069d983bf6b17f7950 to your computer and use it in GitHub Desktop.
WooCommerce Linked Variations - Add Linked Variations Swatches in the Catalog/Shop
// Add Iconic linked products to shop page
add_filter('woocommerce_loop_add_to_cart_link', 'wlv_add_swatch', 999);
function wlv_add_swatch() {
echo do_shortcode('[iconic_wlv_links]');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment