woocommerce_valid_location_types, array( postcode, state, country, continent

woocommerce_valid_location_types, array( postcode, state, country, continent

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

apply_filters('woocommerce_valid_location_types, array( postcode, state, country, continent') is found 1 times:

  • /includes/class-wc-shipping-zone.php line 354
    	 * @param  string $type Type to check.
    	 * @return boolean
    	 */
    	public function is_valid_location_type( $type ) {
    		return in_array( $type, apply_filters( 'woocommerce_valid_location_types', array( 'postcode', 'state', 'country', 'continent' ) ), true );
    	}
    
    	/**
    	 * Add location (state or postcode) to a zone.
    	 *
    	 * @param string $code Location code.