Use post title for coupon name
[MAILPOET-5169]
This commit is contained in:
@@ -314,7 +314,7 @@ class OrderFieldsFactory {
|
|||||||
foreach ($coupons as $coupon) {
|
foreach ($coupons as $coupon) {
|
||||||
if ($coupon instanceof WP_Post) {
|
if ($coupon instanceof WP_Post) {
|
||||||
// phpcs:ignore Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps
|
// phpcs:ignore Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps
|
||||||
$options[] = ['id' => $coupon->post_title, 'name' => $coupon->post_name];
|
$options[] = ['id' => $coupon->post_title, 'name' => $coupon->post_title];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $options;
|
return $options;
|
||||||
|
Reference in New Issue
Block a user