Skip to content

Instantly share code, notes, and snippets.

@Solgaz
Solgaz / functions.php
Created Mar 23, 2019 — forked from lukecav/functions.php
Remove WC's Ajax call (?wc-ajax=get_refreshed_fragments)
View functions.php
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'); }
@Solgaz
Solgaz / functions.php
Created Mar 23, 2019 — forked from lukecav/functions.php
Remove WC's Ajax call (?wc-ajax=get_refreshed_fragments)
View functions.php
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'); }