diff --git a/src/Controllers/Version2/class-wc-rest-shipping-zones-v2-controller.php b/src/Controllers/Version2/class-wc-rest-shipping-zones-v2-controller.php index d3abcf9ff46..cd8a6b75ccf 100644 --- a/src/Controllers/Version2/class-wc-rest-shipping-zones-v2-controller.php +++ b/src/Controllers/Version2/class-wc-rest-shipping-zones-v2-controller.php @@ -48,7 +48,7 @@ class WC_REST_Shipping_Zones_V2_Controller extends WC_REST_Shipping_Zones_Contro ); register_rest_route( - $this->namespace, '/' . $this->rest_base . '/(?P[\d-]+)', array( + $this->namespace, '/' . $this->rest_base . '/(?P[\d]+)', array( 'args' => array( 'id' => array( 'description' => __( 'Unique ID for the resource.', 'woocommerce-rest-api' ),