Created
July 24, 2023 12:24
-
-
Save xlplugins/e9b20901ca18898ea9128cf453cab13b to your computer and use it in GitHub Desktop.
remove extra checkout js from funnelkit checkout
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_action( 'wp_footer', function () { | |
/** | |
* Uncomment Below two line of code if you not used variable product in checkout | |
*/ | |
//wp_dequeue_script( 'wc-single-product' ); | |
//wp_dequeue_script( 'wc-add-to-cart-variation' ); | |
wp_dequeue_script( 'flexslider' ); | |
wp_dequeue_script( 'zoom' ); | |
wp_dequeue_style( 'photoswipe' ); | |
wp_dequeue_style( 'photoswipe-default-skin' ); | |
wp_dequeue_script( 'photoswipe' ); | |
wp_dequeue_script( 'photoswipe-ui-default' ); | |
}, - 10 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment