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.
Метод класса: ProductButton{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$ProductButton = new ProductButton(); $ProductButton->dequeue_add_to_cart_scripts();
Код ProductButton::dequeue_add_to_cart_scripts() ProductButton::dequeue add to cart scripts WC 9.4.2
public function dequeue_add_to_cart_scripts() { wp_dequeue_script( 'wc-add-to-cart' ); }