receiptId) { return ''; } $donation = give()->donations->getByReceiptId($data->receiptId); if (!$donation) { return ''; } /** * Fires before the donation confirmation receipt view is rendered. * * @since 3.4.0 * * @param Donation $donation */ do_action('givewp_donation_confirmation_receipt_showing', $donation); ob_clean(); return (new DonationConfirmationReceiptViewModel($donation))->render(); } }