Last active
April 29, 2020 10:29
-
-
Save pramodjodhani/b431d0bda33050d16ee711fe8bcbde06 to your computer and use it in GitHub Desktop.
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
<?php | |
/** | |
* Disable WooThumbs to prevent duplicate gallery. | |
* | |
* @return void | |
*/ | |
function iconic_disable_woothumbs() { | |
global $iconic_woothumbs_class; | |
remove_action( 'woocommerce_before_single_product_summary', array( $iconic_woothumbs_class, 'show_product_images' ), 20 ); | |
} | |
add_action( 'wp', 'iconic_disable_woothumbs' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment