Order API Refund not working since last updates
-
Hi,
Since your last updates, the order refund API is not working anymore
Indeed, on the return on the preparedatabase you have added that
return apply_filters( “woocommerce_rest_pre_insert_{$this->post_type}_object”, $refund, $request, $creating );Except that for a refund, the post type is shop_order_refund,and is not usuable with your filter, that only handle post and pages, so it creates a fatal error each time
Use return $refund; instead repair the problem, please solve it on the next update, for V2 and V3 controllers thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Order API Refund not working since last updates’ is closed to new replies.