You appear to be a bot. Output may be restricted
Description
Get Payments
Retrieve payments from the database. Since 1.2, this function takes an array of arguments, instead of individual parameters. All of the original parameters remain, but can be passed in any order via the array. $offset = 0, $number = 20, $mode = 'live', $orderby = 'ID', $order = 'DESC', $user = null, $status = 'any', $meta_key = null As of EDD 1.8 this simply wraps EDD_Payments_Query
Usage
$EDD_Payment[] = edd_get_payments( $args );
Parameters
- $args
- ( array ) optional – Arguments passed to get payments
Returns
EDD_Payment[] $payments Payments retrieved from the database
Source
File name: easy-digital-downloads/includes/payments/functions.php
Lines:
1 to 11 of 11
function edd_get_payments( $args = array() ) { // Fallback to post objects to ensure backwards compatibility if( ! isset( $args['output'] ) ) { $args['output'] = 'posts'; } $args = apply_filters( 'edd_get_payments_args', $args ); $payments = new EDD_Payments_Query( $args ); return $payments->get_payments(); }