[php]
/***********************************************************************
* WooCommerce Order Editing
* Allow processing Orders to be edited
***********************************************************************
*/
add_filter( ‚wc_order_is_editable‘, ‚wc_make_processing_orders_editable‘, 10, 2 );
function wc_make_processing_orders_editable( $is_editable, $order ) {
if ( $order->get_status() == ‚processing‘ || $order->get_status() == ‚completed‘ ) {
$is_editable = true;
}
return $is_editable;
}
[/php]