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.
Source Source
File: includes/class-wc-shipping.php
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |