woocommerce_before_save_order_items

woocommerce_before_save_order_items

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

do_action('woocommerce_before_save_order_items') is found 1 times:

  • /includes/admin/wc-admin-functions.php line 305
     */
    function wc_save_order_items( $order_id, $items ) {
    	// Allow other plugins to check change in order items before they are saved.
    	/* phpcs:disable WooCommerce.Commenting.CommentHooks.MissingHookComment */
    	do_action( 'woocommerce_before_save_order_items', $order_id, $items );
    	/* phpcs: enable */
    
    	$qty_change_order_notes = array();
    	$order                  = wc_get_order( $order_id );
    
    	// Line items and fees.
    

See this hook used in plugins: