Automattic\WooCommerce\Admin\Features\ShippingPartnerSuggestions
DefaultShippingPartners::get_rules_for_countries()
Get rules that match the store base location to one of the provided countries.
Method of the class: DefaultShippingPartners{}
No Hooks.
Return
Object
. Rules to match.
Usage
$result = DefaultShippingPartners::get_rules_for_countries( $countries );
- $countries(array) (required)
- Array of countries to match.
DefaultShippingPartners::get_rules_for_countries() DefaultShippingPartners::get rules for countries code WC 9.7.1
public static function get_rules_for_countries( $countries ) { return (object) array( 'type' => 'base_location_country', 'operation' => 'in', 'value' => $countries, ); }