Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
WC_Shipping_Zone
location_is_country
WC_Shipping_Zone::location_is_country PHP Method
WC_Shipping_Zone Class Documentation
Show file
Open project: woocommerce/woocommerce
location_is_country()
private
method
Location type detection.
private
location_is_country
(
object
$location
) :
boolean
$location
object
return
boolean
private function location_is_country($location) { return 'country' === $location->type; }
WC_Shipping_Zone
__construct
add_location
add_shipping_method
clear_locations
delete_shipping_method
generate_zone_name
get_formatted_location
get_hook_prefix
get_shipping_methods
get_zone_locations
get_zone_name
get_zone_order
is_valid_location_type
location_is_continent
location_is_country
location_is_postcode
location_is_state
save
set_locations
set_zone_locations
set_zone_name
set_zone_order