Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
for wayne
/** Disable Ajax Call from WooCommerce */
add_action( 'wp_enqueue_scripts', 'dequeue_woocommerce_cart_fragments', 11);
function dequeue_woocommerce_cart_fragments() {
if (is_front_page()) wp_dequeue_script('wc-cart-fragments');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment