plugin-icon

Delete items from the WooCommerce cart button

You can use this shortcode by placing [delete_cart_items_button] in a post, page, or widget.
版本
1.0
最后更新
Jan 9, 2026

This code defines a shortcode [delete_cart_items_button] that generates a button. When the button is clicked, it triggers an AJAX request to the server, and the delete_cart_items_ajax_handler function empties the WooCommerce cart.

免费基于付费套餐
通过安装,您同意 WordPress.com 服务条款第三方插件条款
目前已测试版本
WordPress 6.9.4
这个插件是可用的下载,适用于您的站点。