Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

Shipping::has_shipping_zones()public staticWC 1.0

Check if the store has any shipping zones.

{} It's a method of the class: Shipping{}

No Hooks.

Return

true|false.

Usage

$result = Shipping::has_shipping_zones();

Code of Shipping::has_shipping_zones() WC 6.6.1

public static function has_shipping_zones() {
	return count( \WC_Shipping_Zones::get_zones() ) > 0;
}