Created
October 9, 2015 17:20
-
-
Save asalkey/9a2d07a068d0273d082a to your computer and use it in GitHub Desktop.
Make any WooCommerce status 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 | |
add_filter( 'wc_order_is_editable', 'processing_orders_editable', 10, 2 ); | |
function 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