Delete items from the WooCommerce cart button

Delete items from the WooCommerce cart button

Details
View on WordPress

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.

Details

Plugin code:
delete-items-from-woo-card
Plugin version:
1.0
Outdated:
No
WP version:
6.9 or higher
PHP version:
8.0 or higher
Test up to WP version:
6.9
Total installations:
0
Last updated:
2026-01-09
Rating:
Times rated:
0
delete-items-from-woo-card