Skip to content

Instantly share code, notes, and snippets.

@shreyans94
Created January 23, 2018 21:36
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 shreyans94/2c5c927573f6f16a41298e684ff6013d to your computer and use it in GitHub Desktop.
Save shreyans94/2c5c927573f6f16a41298e684ff6013d to your computer and use it in GitHub Desktop.
Allow editing of woocommerce orders under status of Processing
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