Skip to content

Instantly share code, notes, and snippets.

@woogist
Created May 14, 2015 07:28
Show Gist options
  • Save woogist/4197f90a0a1341f00572 to your computer and use it in GitHub Desktop.
Save woogist/4197f90a0a1341f00572 to your computer and use it in GitHub Desktop.
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' ) {
$is_editable = true;
}
return $is_editable;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment