Merge pull request #20490 from dezio1900/master
Allow items to be changed in wc_save_order_items function
This commit is contained in:
commit
7fa802071e
|
@ -251,6 +251,9 @@ function wc_save_order_items( $order_id, $items ) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Allow other plugins to change item object before it is saved.
|
||||||
|
do_action( 'woocommerce_before_save_order_item', $item );
|
||||||
|
|
||||||
$item->save();
|
$item->save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue