WC_Shipping_Zones::get_zones_with_order_conflict_warnings │ public static │ WC 11.1.0

Get shipping zones from the database with admin warnings for zones that may not match because of their order.

Method of the class: WC_Shipping_Zones{}

No Hooks.

Returns

array. Array of arrays.

Usage

$result = WC_Shipping_Zones::get_zones_with_order_conflict_warnings( $context );
$context(string)
Getting shipping methods for what context. Valid values, admin, json.
Default: 'admin'

Changelog

Since 11.1.0 Introduced.

WC_Shipping_Zones::get_zones_with_order_conflict_warnings() code WC 11.1.2

public static function get_zones_with_order_conflict_warnings( $context = 'admin' ) {
	$zones = self::get_zones( $context );

	return self::add_zone_order_conflict_warnings( $zones );
}