WooCommerce Code Reference

DefaultShippingPartners
in package

Default Shipping Partners

Table of Contents

get_all()  : array<string|int, mixed>
Get default specs.
get_rules_for_countries()  : object
Get rules that match the store base location to one of the provided countries.

Methods

get_rules_for_countries()

Get rules that match the store base location to one of the provided countries.

public static get_rules_for_countries(array<string|int, mixed> $countries) : object
Parameters
$countries : array<string|int, mixed>

Array of countries to match.

Return values
objectRules to match.