Fixed wrong route path for shipping zone api

This commit is contained in:
Siriwat Uamngamsup 2020-01-15 14:02:29 +07:00 committed by Claudio Sanches
parent ea36caf17e
commit 43b9f9f07d
1 changed files with 1 additions and 1 deletions

View File

@ -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<id>[\d-]+)', array(
$this->namespace, '/' . $this->rest_base . '/(?P<id>[\d]+)', array(
'args' => array(
'id' => array(
'description' => __( 'Unique ID for the resource.', 'woocommerce-rest-api' ),