You can use this shortcode by placing [delete_cart_items_button] in a post, page, or widget.
As of April 2026, Delete items from the WooCommerce cart button is a WordPress Delete items from woo card plugin with 0 active installations and a 0/5 rating0. It has been downloaded 540 times in total. Requires WordPress 6.9+ and PHP 8.0+. Available on WordPress.org since 2024.
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 | 6.9+ requiredTested up to 6.9.4 |
| PHP | 8.0+ required |
No change since the previous version.
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.