woothemes/woocommerce — pull request #6333 by loushou (2014-09-19 16:07:42+00:00)
Title: Inform plugins of 'save_order_items'

The `wc_save_order_items()` needs to let us know it saved those items. It is only called in two places, one by the 'save_order_items' ajax call and the other by the order item metabox save function. Neither of those places inform us that the items were saved either.

Currently, there is no way to hook in on the ajax call path, after the core ajax function does it's magic, since the ajax function exits at the end. That means you cannot modify any meta that would be changed by the core ajax function, since it would be overwritten. There is a method to hook in after the order item metabox save, but it is suboptimal, because the `woocommerce_process_shop_order_meta` priority orders could have been changed, and you may still wind up after the save function runs.

Adding this filter will open up the ability to know the order items were saved in the admin, from both call paths, without any strange workarounds or takeovers.