WordPress at Your Fingertips
filter is not described

woocommerce_shipping_packages filter-hook . WC 2.6.0

Allow packages to be reorganized after calculating the shipping.

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.


add_filter( 'woocommerce_shipping_packages', 'filter_function_name_3860' );
function filter_function_name_3860( $packages ){
	// filter...

	return $packages;
The array of packages after shipping costs are calculated.


Since 2.6.0 Introduced.

Where the hook is called

woocommerce/includes/class-wc-shipping.php 274
$this->packages = array_filter( (array) apply_filters( 'woocommerce_shipping_packages', $this->packages ) );

Where in WP core the hook is used WooCommerce

Usage not found.