Skip to content

Instantly share code, notes, and snippets.

@AdsonCicilioti
Forked from woogist/functions.php
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdsonCicilioti/b1086ac48f2b8bc389a3 to your computer and use it in GitHub Desktop.
Save AdsonCicilioti/b1086ac48f2b8bc389a3 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