WooCommerce puts direct bank transfer orders On hold because you confirm the payment yourself. Orders that are never paid stay On hold until someone cancels them, holding stock and cluttering the order list.
When a bank transfer order is still On hold after seven days, this routine adds a customer note explaining the cancellation. WooCommerce emails the note to the customer, then the routine cancels the order so the reserved stock can be returned.
Before you turn it on
Only enable this routine if paid bank transfers are moved out of On hold as soon as payment is confirmed. Store Routines cannot check your bank account. It treats an order that is still On hold after the waiting period as unresolved. Set Payment methods to your bank transfer gateway and change the seven days to match your payment terms.