Add coupon description to REST API coupon response

This commit is contained in:
Max Rice 2014-07-30 16:19:35 -04:00
parent 1b41eef5f6
commit 64ddf83184
1 changed files with 1 additions and 0 deletions

View File

@ -138,6 +138,7 @@ class WC_API_Coupons extends WC_API_Resource {
'exclude_sale_items' => $coupon->exclude_sale_items(),
'minimum_amount' => wc_format_decimal( $coupon->minimum_amount, 2 ),
'customer_emails' => $coupon->customer_email,
'description' => $coupon_post->post_excerpt,
);
return array( 'coupon' => apply_filters( 'woocommerce_api_coupon_response', $coupon_data, $coupon, $fields, $this->server ) );