Created
May 30, 2017 07:09
-
-
Save freelancedaddytv/47f509c79167eb4fb30b622b26787ff2 to your computer and use it in GitHub Desktop.
Woocommerce 3.0 + Remove Single Product Main Image Link
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
function remove_single_product_link( $html ) { | |
return strip_tags( $html,'<img>' ); | |
} | |
add_filter('woocommerce_single_product_image_thumbnail_html','remove_single_product_link' ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment