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


Top ↑

Return Return

(EDD_Payment|false) false|object EDD_Payment if a valid payment ID, false otherwise.


Top ↑

Source Source

File: includes/payments/functions.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.7 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.