Hi guys – I just stumbled across what appears to be a bug in the most recent version. In the wjecf-autocoupon.php file, within the get_all_auto_coupons() function, the meta_query in $query_args is invalid. This means it’s being dropped, always rendering an SQL query like:
SELECT wp_posts.* FROM wp_posts WHERE 1=1 AND wp_posts.post_type = ‘shop_coupon’ AND ((wp_posts.post_status = ‘publish’)) ORDER BY wp_posts.post_title ASC
The meta_query value should be wrapped in another array() – something like:
‘meta_query’ => array(array( ‘key’ => ‘_wjecf_is_auto_coupon’, ‘compare’ => ‘=’, ‘value’ => ‘yes’))
Thanks!