WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Купить персональные IPV4 и IPV6 прокси
фильтр не описан

woocommerce_shipping_packages хук-фильтр . 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_3306' );
function filter_function_name_3306( $packages ){
	// filter...

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

Список изменений

С версии 2.6.0 Введена.

Где вызывается хук

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

Где используется хук (в ядре WC)

Использование не найдено.