Send http status 201 when coupon created.

This commit is contained in:
Gerhard 2014-03-06 09:59:28 +02:00
parent ae85e64b2b
commit 3b0c541acf
1 changed files with 2 additions and 0 deletions

View File

@ -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 );
}