Last active
October 30, 2018 14:43
-
-
Save nfsarmento/7fca5aad01092bccfe9c26af8ef6617c to your computer and use it in GitHub Desktop.
Stopping Cart Fragments From Updating in WooCommerce
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
/** Stopping Cart Fragments From Updating in WooCommerce | |
* | |
* https://www.nuno-sarmento.com | |
*/ | |
add_action( 'wp_print_scripts', 'ns_cart_fragments', 100 ); | |
function ns_cart_fragments() { | |
wp_dequeue_script( 'wc-cart-fragments' ); | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment