Created
January 27, 2022 04:51
-
-
Save jhimross/51c1be7ebba3af069d983bf6b17f7950 to your computer and use it in GitHub Desktop.
WooCommerce Linked Variations - Add Linked Variations Swatches in the Catalog/Shop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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