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.

Метод класса: WC_Shipping_Zones{}

Хуков нет.

Возвращает

array. Array of arrays.

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

$result = WC_Shipping_Zones::get_zones_with_order_conflict_warnings( $context );
$context(строка)
Getting shipping methods for what context. Valid values, admin, json.
По умолчанию: 'admin'

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

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

Код WC_Shipping_Zones::get_zones_with_order_conflict_warnings() WC 11.2.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 );
}