Skip to content

Commit e58717d

Browse files
committed
Set woocommerce coupon description
1 parent e21b59b commit e58717d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gravity-forms/gw-create-coupon.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public function create_coupon_wc( $coupon_name, $coupon_code, $amount, $type, $e
193193
// WooCommerce coupon uses the Post Title as the coupon code hence $coupon_code is assigned to Post Title and $coupon_name is assigned to the Post Content
194194
$coupon = array(
195195
'post_title' => $coupon_code,
196-
'post_content' => $coupon_name,
196+
'post_excerpt' => $coupon_name,
197197
'post_status' => 'publish',
198198
'post_author' => 1,
199199
'post_type' => 'shop_coupon',

0 commit comments

Comments
 (0)