Auto-Close
Auto-close automatically moves stale pending requests to cancelled after a set number of days without admin action.
Navigate to WooCommerce → ReturnDesk → Returns → Auto-Close.
Settings
| Setting | Default | Description |
|---|---|---|
| Enable Auto-Close | No | Activate the auto-close feature |
| Auto-Close After (days) | 30 | Days of inactivity before a pending request is cancelled |
How It Works
Auto-close runs via a daily WordPress cron job. When a request is auto-closed:
- Status changes to
cancelled. status_cancelledemail is sent to the customer.- A note is added to the request indicating it was closed automatically.
The returndesk_pro_auto_closed action fires for each auto-closed request, passing the $request_id. Hook into it for custom logging or notifications.
⚠️
The auto-close days value applies to all pending requests from the next cron run. Requests that have been pending longer than the new value will be closed at the next execution.