Set register_rest_route override to TRUE
This commit is contained in:
parent
be737d6f9e
commit
6c3e1bbd01
|
@ -41,7 +41,8 @@ class WC_REST_Blocks_Product_Attribute_Terms_Controller extends WC_REST_Product_
|
|||
'args' => $this->get_collection_params(),
|
||||
),
|
||||
'schema' => array( $this, 'get_public_item_schema' ),
|
||||
)
|
||||
),
|
||||
true
|
||||
);
|
||||
|
||||
register_rest_route(
|
||||
|
@ -67,7 +68,8 @@ class WC_REST_Blocks_Product_Attribute_Terms_Controller extends WC_REST_Product_
|
|||
),
|
||||
),
|
||||
'schema' => array( $this, 'get_public_item_schema' ),
|
||||
)
|
||||
),
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -41,7 +41,8 @@ class WC_REST_Blocks_Product_Attributes_Controller extends WC_REST_Product_Attri
|
|||
'args' => $this->get_collection_params(),
|
||||
),
|
||||
'schema' => array( $this, 'get_public_item_schema' ),
|
||||
)
|
||||
),
|
||||
true
|
||||
);
|
||||
|
||||
register_rest_route(
|
||||
|
@ -67,7 +68,8 @@ class WC_REST_Blocks_Product_Attributes_Controller extends WC_REST_Product_Attri
|
|||
),
|
||||
),
|
||||
'schema' => array( $this, 'get_public_item_schema' ),
|
||||
)
|
||||
),
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -41,7 +41,8 @@ class WC_REST_Blocks_Product_Categories_Controller extends WC_REST_Product_Categ
|
|||
'args' => $this->get_collection_params(),
|
||||
),
|
||||
'schema' => array( $this, 'get_public_item_schema' ),
|
||||
)
|
||||
),
|
||||
true
|
||||
);
|
||||
|
||||
register_rest_route(
|
||||
|
@ -67,7 +68,8 @@ class WC_REST_Blocks_Product_Categories_Controller extends WC_REST_Product_Categ
|
|||
),
|
||||
),
|
||||
'schema' => array( $this, 'get_public_item_schema' ),
|
||||
)
|
||||
),
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -41,7 +41,8 @@ class WC_REST_Blocks_Products_Controller extends WC_REST_Products_Controller {
|
|||
'args' => $this->get_collection_params(),
|
||||
),
|
||||
'schema' => array( $this, 'get_public_item_schema' ),
|
||||
)
|
||||
),
|
||||
true
|
||||
);
|
||||
|
||||
register_rest_route(
|
||||
|
@ -67,7 +68,8 @@ class WC_REST_Blocks_Products_Controller extends WC_REST_Products_Controller {
|
|||
),
|
||||
),
|
||||
'schema' => array( $this, 'get_public_item_schema' ),
|
||||
)
|
||||
),
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue