You can use this shortcode by placing [delete_cart_items_button] in a post, page, or widget.
| Author: | Benjamin Hagh Parast (profile at wordpress.org) |
| WordPress version required: | 6.9 |
| WordPress version tested: | 6.9 |
| Plugin version: | 1.0 |
| Added to WordPress repository: | 12-04-2024 |
| Last updated: | 09-01-2026 |
| Rating, %: | 0 |
| Rated by: | 0 |
| Plugin URI: | https://wordtune.me/wt-blog |
| Total downloads: | 793 |
![]() Click to start download |
|
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.
FAQ
ChangeLog
