You can use this shortcode by placing [delete_cart_items_button] in a post, page, or widget.
Author: | WordTune (profile at wordpress.org) |
WordPress version required: | 5.4 |
WordPress version tested: | 6.4.4 |
Plugin version: | 1.0 |
Added to WordPress repository: | 12-04-2024 |
Last updated: | 12-04-2024 |
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | https://wordtune.me/wt-blog |
Total downloads: | 33 |
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