Add or edit orders item in WooCommerce Admin

Add below code to your active themes functions.php
/* Order Editable when in process*/
add_filter( 'wc_order_is_editable', 'rb_processing_orders_editable', 10, 2 );
function rb_processing_orders_editable( $is_editable, $order ) {
    if ( $order->get_status() == 'processing' ) {
        $is_editable = true;
    }
    return $is_editable;
}

Comments

Popular posts from this blog

Stop video playing when Bootstrap modal is closed