CSV export: only completed donations (not abandoned checkouts)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c7f2dcffeb
commit
875ca42054
2 files changed
+17
-1
No files matched your search
@@ -137,7 +137,7 @@ final class Store {
|
||||
global $wpdb;
|
||||
return (array) $wpdb->get_results(
|
||||
$wpdb->prepare(
|
||||
'SELECT * FROM ' . self::t( 'donations' ) . ' WHERE id > %d AND paypal_order_id NOT LIKE %s AND goal_id > 0 ORDER BY id ASC LIMIT %d',
|
||||
'SELECT * FROM ' . self::t( 'donations' ) . ' WHERE id > %d AND status = \'completed\' AND paypal_order_id NOT LIKE %s AND goal_id > 0 ORDER BY id ASC LIMIT %d',
|
||||
$afterId,
|
||||
$wpdb->esc_like( Format::TEST_PREFIX ) . '%',
|
||||
$limit
|
||||
|
||||
Reference in new issue
Block a user