Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save xlplugins/e9b20901ca18898ea9128cf453cab13b to your computer and use it in GitHub Desktop.
Save xlplugins/e9b20901ca18898ea9128cf453cab13b to your computer and use it in GitHub Desktop.
remove extra checkout js from funnelkit checkout
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