Allow set instance_id for Order's shipping_lines

This commit is contained in:
Claudio Sanches 2019-12-19 13:18:23 -03:00
parent d139b35344
commit ae9948edef
1 changed files with 1 additions and 1 deletions

View File

@ -700,7 +700,7 @@ class WC_REST_Orders_V2_Controller extends WC_REST_CRUD_Controller {
}
}
$this->maybe_set_item_props( $item, array( 'method_id', 'method_title', 'total' ), $posted );
$this->maybe_set_item_props( $item, array( 'method_id', 'method_title', 'total', 'instance_id' ), $posted );
$this->maybe_set_item_meta_data( $item, $posted );
return $item;