woocommerce_valid_location_types filter-hook . WC 1.0
Is passed location type valid?
Usage
add_filter( 'woocommerce_valid_location_types', 'filter_function_name_3672' ); function filter_function_name_3672( $type ){ // filter... return $type; }
- $type(string)
- Type to check.
Where the hook is called
woocommerce_valid_location_types
woocommerce/includes/class-wc-shipping-zone.php 354
return in_array( $type, apply_filters( 'woocommerce_valid_location_types', array( 'postcode', 'state', 'country', 'continent' ) ), true );