Fix latest coupon fetching logic
[MAILPOET-5169]
This commit is contained in:
@@ -214,7 +214,7 @@ class Helper {
|
||||
public function getLatestCoupon(): ?string {
|
||||
$coupons = $this->wp->getPosts([
|
||||
'numberposts' => 1,
|
||||
'orderby' => 'name',
|
||||
'orderby' => 'date_created',
|
||||
'order' => 'desc',
|
||||
'post_type' => 'shop_coupon',
|
||||
'post_status' => 'publish',
|
||||
|
Reference in New Issue
Block a user