Skip to content

Instantly share code, notes, and snippets.

@ethanpil
Created March 21, 2023 01:13
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 ethanpil/1965ac268338729e156a64368c61e48d to your computer and use it in GitHub Desktop.
Save ethanpil/1965ac268338729e156a64368c61e48d to your computer and use it in GitHub Desktop.
Make WooCommerce order status Processing editable
<?php
//https://nicolamustone.blog/2015/05/14/how-to-edit-processing-orders/
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