Closed DevinWalker closed 6 years ago
I was having trouble properly sorting based on donor's metadata while working on https://github.com/WordImpress/Give-Gift-Aid/issues/56 and https://github.com/WordImpress/Give-Gift-Aid/issues/57
I was attempting to use $donors = Give()->donors->get_donors(); but unfortunately the args you can pass into it are limited.
$donors = Give()->donors->get_donors();
Developers can more easily query donors with flexibility.
It is very limited.
I noticed EDD now has https://github.com/easydigitaldownloads/easy-digital-downloads/blob/master/includes/class-edd-customer-query.php now which was seemingly developed out of the same frustration.
This is awesome. Great work!
These would make for some easy shortcodes as well: https://developers.givewp.com/2017/10/11/give-1-8-14-introducing-new-give_donors_query-class/
Issue Overview
I was having trouble properly sorting based on donor's metadata while working on https://github.com/WordImpress/Give-Gift-Aid/issues/56 and https://github.com/WordImpress/Give-Gift-Aid/issues/57
I was attempting to use
$donors = Give()->donors->get_donors();
but unfortunately the args you can pass into it are limited.Expected Behavior
Developers can more easily query donors with flexibility.
Current Behavior
It is very limited.
Possible Solution
I noticed EDD now has https://github.com/easydigitaldownloads/easy-digital-downloads/blob/master/includes/class-edd-customer-query.php now which was seemingly developed out of the same frustration.