• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Easy Digital Downloads a2z

Easy Digital Downloads a2z

Easy Digital Downloads a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / edd_get_payments() – Get Payments

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();
}
 

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 23rd February 2021

Primary Sidebar

Information

Function name: edd_get_payments
Plugin ref: Easy Digital Downloads
Version: 2.11.6
Sourcefile: includes/payments/functions.php
File ref: includes/payments/functions.php
Deprecated?: No
API Letters: E,G,P

Footer

Easy Digital Downloads a2z
Easy Digital Downloads a2z
Easy Digital Downloads a2z
WordPress 5.9.3
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  edd.wp-a2z.org
© Copyright Easy Digital Downloads a2z 2014-2022. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites