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

WC_Shipping::is_package_shippable() public WC 1.0

See if package is shippable.

Packages are shippable until proven otherwise e.g. after getting a shipping country.

Это метод класса: WC_Shipping{}

Хуков нет.

Возвращает

true/false.

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

$WC_Shipping = new WC_Shipping();
$WC_Shipping->is_package_shippable( $package );
$package(массив) (обязательный)
Package of cart items.

Код WC_Shipping::is_package_shippable() WC 4.5.2

woocommerce/includes/class-wc-shipping.php
<?php
public function is_package_shippable( $package ) {
	// Packages are shippable until proven otherwise.
	if ( empty( $package['destination']['country'] ) ) {
		return true;
	}

	$allowed = array_keys( WC()->countries->get_shipping_countries() );
	return in_array( $package['destination']['country'], $allowed, true );
}