Skip to content

Instantly share code, notes, and snippets.

@asalkey
Created October 9, 2015 17:20
Show Gist options
  • Save asalkey/9a2d07a068d0273d082a to your computer and use it in GitHub Desktop.
Save asalkey/9a2d07a068d0273d082a to your computer and use it in GitHub Desktop.
Make any WooCommerce status editable
<?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