The ‘Edit Order’ page can be modified; more specifically, the ‘Order actions’ metabox can have custom actions added to it. Recently, I needed to add the ‘Cancel Order’ function to this list of ‘Order actions’ in the metabox. It’s always handy, to further your understanding of the internals, to have some official WordPress & WooCommerce […]
You are browsing archives for
Tag: woocommerce
WordPress & WooCommerce: Modifying the cancel_unpaid_orders function
WooCommerce will schedule a task to cancel any unpaid orders. The number of minutes after which the unpaid orders will be cancelled is specified at WooCommerce -> Settings -> Products -> Inventory -> Hold stock (minutes). Ordinarily, this function will cancel any & all orders but it can be modified & overridden to, for example, […]