WordPress at Your Fingertips
function is not described

WC_Shipping_Zone::is_valid_location_type() public WC 1.0

Is passed location type valid?

{} It's a method of the class: WC_Shipping_Zone{}

Hooks from the method
Return

true|false.

Usage

$WC_Shipping_Zone = new WC_Shipping_Zone();
$WC_Shipping_Zone->is_valid_location_type( $type );
$type(string) (required)
Type to check.

Code of WC_Shipping_Zone::is_valid_location_type() WC 5.6.0

public function is_valid_location_type( $type ) {
	return in_array( $type, apply_filters( 'woocommerce_valid_location_types', array( 'postcode', 'state', 'country', 'continent' ) ), true );
}