Automattic\WooCommerce\Admin\Features\ShippingPartnerSuggestions
DefaultShippingPartners::get_rules_for_countries
Get rules that match the store base location to one of the provided countries.
Метод класса: DefaultShippingPartners{}
Хуков нет.
Возвращает
Объект. Rules to match.
Использование
$result = DefaultShippingPartners::get_rules_for_countries( $countries );
- $countries(массив) (обязательный)
- Array of countries to match.
Код DefaultShippingPartners::get_rules_for_countries() DefaultShippingPartners::get rules for countries WC 11.0.0
public static function get_rules_for_countries( $countries ) {
return (object) array(
'type' => 'base_location_country',
'operation' => 'in',
'value' => $countries,
);
}