Automattic\WooCommerce\Blocks\BlockTypes
ProductButton::dequeue_add_to_cart_scripts()
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() 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' ); }