=== Auto Cancel On-Hold Orders for WooCommerce ===
Contributors: coderevolution
Donate link: https://www.patreon.com/coderevolution
Tags: orders, automation, ecommerce
Requires at least: 5.3
Tested up to: 6.9
Requires PHP: 7.0
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Automatically cancel on-hold orders after a configurable number of days.

== Description ==

This plugin helps store owners automatically cancel orders that remain in the "on-hold" status for too long.

It is useful for WooCommerce stores that rely on manual payment methods and want to prevent outdated on-hold orders from blocking inventory or requiring manual cleanup.

Once enabled, the plugin runs automatically using WordPress cron and requires no further action.

== How It Works ==

The plugin checks for orders with the "on-hold" status that were created more than a specified number of days ago and cancels them automatically.

Orders are processed in small batches to ensure safe performance, even on larger stores.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`
2. Activate the plugin through the "Plugins" menu in WordPress
3. Go to Settings → Cancel On-Hold
4. Enable the feature and choose the number of days before cancellation

== Frequently Asked Questions ==

= Does this plugin cancel paid orders? =

No. Only orders with the "on-hold" status are affected.

= Will stock be restored when an order is cancelled? =

Yes. WooCommerce automatically restores stock when an order is cancelled.

= Does this plugin send data to external services? =

No. The plugin does not connect to any third-party services and does not transmit data.

= Can I disable the feature at any time? =

Yes. You can disable the feature from the settings page, and no further actions will be taken.

== Changelog ==

= 1.0.0 =
Initial release.
= 1.0.1 =
Allow adding float values in interval input (ex: 0.5 days)