Automatically clears WooCommerce cart and session data at customizable intervals.
- Auto-clears WooCommerce carts and sessions every:
- 15 minutes
- 30 minutes
- 60 minutes
- Admin settings page under WooCommerce β Auto Clear Cart
- Option to enable/disable the feature
- Optional logging to a file in
wp-content/uploads/auto-clear-cart-log.txt - Automatically deactivates if WooCommerce is not active
- Download the plugin ZIP file.
- Extract the ZIP file Rename the folder from woocommerce-auto-clear-cart-main to woocommerce-auto-clear-cart and ZIP the folder.
- Go to Plugins β Add New in your WordPress dashboard.
- Click Upload Plugin and select the ZIP file.
- Install and activate the plugin.
Navigate to WooCommerce β Auto Clear Cart and configure:
- Enable/disable cart clearing
- Choose the clearing interval
- Toggle logging
- Input sanitization and output escaping implemented
- Secure logging with writable check
- Uses WordPress Settings API and WP-Cron
- Follows WordPress coding standards
If logging is enabled, logs are written to:
wp-content/uploads/auto-clear-cart-log.txt
If WooCommerce is not installed or active, this plugin will:
- Automatically deactivate itself
- Display an admin notice
This plugin is released under the GPLv2 license.
Developed with β€οΈ for WooCommerce users