apply_filters( 'woocommerce_shipping_packages', array $packages )

Allow packages to be reorganized after calculating the shipping.


Description Description

This filter can be used to apply some extra manipulation after the shipping costs are calculated for the packages but before WooCommerce does anything with them. A good example of usage is to merge the shipping methods for multiple packages for marketplaces.


Parameters Parameters

$packages

The array of packages after shipping costs are calculated.


Top ↑

Source Source

File: includes/class-wc-shipping.php


Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.