Automattic\WooCommerce\Blocks\BlockTypes

ProductButton::dequeue_add_to_cart_scripts()publicWC 1.0

Dequeue the add-to-cart script. The block uses Interactivity API, it isn't necessary enqueue the add-to-cart script.

Method of the class: ProductButton{}

No Hooks.

Return

null. Nothing (null).

Usage

$ProductButton = new ProductButton();
$ProductButton->dequeue_add_to_cart_scripts();

ProductButton::dequeue_add_to_cart_scripts() code WC 9.4.2

public function dequeue_add_to_cart_scripts() {
	wp_dequeue_script( 'wc-add-to-cart' );
}