Automattic\WooCommerce\Blocks\BlockTypes

Cart::dequeue_woocommerce_core_scripts()publicWC 1.0

Dequeues the scripts added by WC Core to the Cart page.

Method of the class: Cart{}

No Hooks.

Return

null. Nothing (null).

Usage

$Cart = new Cart();
$Cart->dequeue_woocommerce_core_scripts();

Cart::dequeue_woocommerce_core_scripts() code WC 9.0.1

public function dequeue_woocommerce_core_scripts() {
	wp_dequeue_script( 'wc-cart' );
	wp_dequeue_script( 'wc-password-strength-meter' );
	wp_dequeue_script( 'selectWoo' );
	wp_dequeue_style( 'select2' );
}