edd_get_payment( $payment_or_txn_id = null, bool $by_txn = false )
Retrieves an instance of EDD_Payment for a specified ID.
Description Description
Parameters Parameters
-
(Required) int|EDD_Payment|WP_Post $payment Payment ID, EDD_Payment object or WP_Post object.
- $by_txn
-
(Optional) Is the ID supplied as the first parameter
Default value: false
Return Return
(EDD_Payment|false) false|object EDD_Payment if a valid payment ID, false otherwise.
Source Source
File: includes/payments/functions.php
Changelog Changelog
Version | Description |
---|---|
2.7 | Introduced. |