Merge pull request #20490 from dezio1900/master

Allow items to be changed in wc_save_order_items function
This commit is contained in:
Gerhard Potgieter 2018-07-11 12:52:36 +02:00 committed by GitHub
commit 7fa802071e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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();
} }
} }