skip to Main Content
WooCommerce: Allow Editing Of Order Regardless Of Status

Request

A workflow for orders that I manage requires the ability to modify  orders in completed or processing status. WooCommerce’s 2.2 update removed the ability to edit orders that were in certain statuses.

Required Plugins

Code

Add the following to your `functions.php` file

// WooCommerce: Allow editing of all orders regardless of status

add_filter ( 'wc_order_is_editable', 'majemedia_add_order_statuses_to_editable' );
function majemedia_add_order_statuses_to_editable () {
	return TRUE;
}

Result

You can now edit an order in the admin order edit screen regardless of the order status. This is not suggested for use with sites that have customers pay for orders immediately, but instead for sites that have post-pay or an invoicing setup.

Disclaimer

Maje Media LLC cannot be held responsible for the functionality of this code. Please make sure you test it on a development site before adding the code to your production website. There is no support available for this (and other) code snippet(s) posted on this website. If you’d like Maje Media to do custom development to help with your custom implementation please send a contact request.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Back To Top