Created
March 21, 2023 01:13
-
-
Save ethanpil/1965ac268338729e156a64368c61e48d to your computer and use it in GitHub Desktop.
Make WooCommerce order status Processing editable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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