{"action":"created","issue":{"url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/2973","labels_url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/2973/labels{/name}","comments_url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/2973/comments","events_url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/2973/events","html_url":"https://github.com/easydigitaldownloads/Easy-Digital-Downloads/issues/2973","id":54715743,"number":2973,"title":"EDD_Payments_Query download arg does not work.","user":{"login":"danieliser","id":847818,"avatar_url":"https://avatars.githubusercontent.com/u/847818?v=3","gravatar_id":"","url":"https://api.github.com/users/danieliser","html_url":"https://github.com/danieliser","followers_url":"https://api.github.com/users/danieliser/followers","following_url":"https://api.github.com/users/danieliser/following{/other_user}","gists_url":"https://api.github.com/users/danieliser/gists{/gist_id}","starred_url":"https://api.github.com/users/danieliser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieliser/subscriptions","organizations_url":"https://api.github.com/users/danieliser/orgs","repos_url":"https://api.github.com/users/danieliser/repos","events_url":"https://api.github.com/users/danieliser/events{/privacy}","received_events_url":"https://api.github.com/users/danieliser/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-01-19T00:06:28Z","updated_at":"2015-01-19T03:19:35Z","closed_at":null,"body":"Consider the following example\r\n\r\n\t$args = array();\r\n\tif( !empty( $_REQUEST['donation_cause'] ) ) {\r\n\t\t$args['download'] = $_REQUEST['donation_cause'];\r\n\t}\r\n\t$payment_query = new EDD_Payments_Query( $args );\r\n\t$payments = $payment_query->get_payments();\r\n\r\nThis does not work. I have even manually dumped the args and it is there. The EDD_Payments_Query->download function does run, but returns no $sales inside the call to $edd_logs.\r\n\r\nMy real code is a bit more complex but even this completely basic example fails to return anything.\r\n\r\nI am building a Donation History with this, and allowing filtering by each download/cause as well as end of year tax receipts.\r\n\r\nOn that note would any of the other API Classes be better suited for this, though this is not relevant as the Payments Query is not working as expected from inline documentation."},"comment":{"url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/comments/70441997","html_url":"https://github.com/easydigitaldownloads/Easy-Digital-Downloads/issues/2973#issuecomment-70441997","issue_url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/2973","id":70441997,"user":{"login":"danieliser","id":847818,"avatar_url":"https://avatars.githubusercontent.com/u/847818?v=3","gravatar_id":"","url":"https://api.github.com/users/danieliser","html_url":"https://github.com/danieliser","followers_url":"https://api.github.com/users/danieliser/followers","following_url":"https://api.github.com/users/danieliser/following{/other_user}","gists_url":"https://api.github.com/users/danieliser/gists{/gist_id}","starred_url":"https://api.github.com/users/danieliser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieliser/subscriptions","organizations_url":"https://api.github.com/users/danieliser/orgs","repos_url":"https://api.github.com/users/danieliser/repos","events_url":"https://api.github.com/users/danieliser/events{/privacy}","received_events_url":"https://api.github.com/users/danieliser/received_events","type":"User","site_admin":false},"created_at":"2015-01-19T03:19:35Z","updated_at":"2015-01-19T03:19:35Z","body":"Im confused? Im not hooking it in any way at this point. All plugins except EDD deactivated."}}