Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 43b9f9f

Browse files
noomzclaudiosanches
authored andcommitted
Fixed wrong route path for shipping zone api
1 parent ea36caf commit 43b9f9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controllers/Version2/class-wc-rest-shipping-zones-v2-controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function register_routes() {
4848
);
4949

5050
register_rest_route(
51-
$this->namespace, '/' . $this->rest_base . '/(?P<id>[\d-]+)', array(
51+
$this->namespace, '/' . $this->rest_base . '/(?P<id>[\d]+)', array(
5252
'args' => array(
5353
'id' => array(
5454
'description' => __( 'Unique ID for the resource.', 'woocommerce-rest-api' ),

0 commit comments

Comments
 (0)