Send http status 201 when coupon created.
This commit is contained in:
parent
ae85e64b2b
commit
3b0c541acf
|
@ -282,6 +282,8 @@ class WC_API_Coupons extends WC_API_Resource {
|
|||
|
||||
do_action( 'woocommerce_api_create_coupon', $id, $data );
|
||||
|
||||
$this->server->send_status( 201 );
|
||||
|
||||
return $this->get_coupon( $id );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue