woocommerce_get_zone_criteria, $criteria, $package, $postcode_locations
woocommerce_get_zone_criteria, $criteria, $package, $postcode_locations
Appears in: woocommerce.11.0.0
Hook Type: filter
Displaying hooks found in version: woocommerce.11.0.0apply_filters('woocommerce_get_zone_criteria, $criteria, $package, $postcode_locations') is found 1 times:
- /includes/data-stores/class-wc-shipping-zone-data-store.php line 341
* @param array $criteria Get zone criteria. * @param array $package Package information. * @param array $postcode_locations Postcode range and wildcard matching. */ $criteria = apply_filters( 'woocommerce_get_zone_criteria', $criteria, $package, $postcode_locations ); // Get matching zones. return $wpdb->get_var( "SELECT zones.zone_id FROM {$wpdb->prefix}woocommerce_shipping_zones as zones LEFT OUTER JOIN {$wpdb->prefix}woocommerce_shipping_zone_locations as locations ON zones.zone_id = locations.zone_id AND location_type != 'postcode' WHERE " . implode( ' ', $criteria ) // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared