[donation_history] shortcode displays the current user’s complete donation history as well as receipts for each instance
GiveWP creates a new page called “Donation History” with this shortcode inserted into the content editor upon install. See the documentation on updating the “Donation History” page here. This shortcode does not currently have a block,but it has customizable arguments. For developers, the Donation History template can be customized as needed.
Why use the Donation History Shortcode?
[donation_history] shortcode on a page provides your logged-in or email-authenticated donors with a place to view their donation history and view individual receipts.
When this page is added, it allows your donors to check their donations, the payment info, and if you are using the PDF Receipts add-on, for example, it allows your donors to (re)download their receipts.
The default Donation History shortcode
The default shortcode will output a donation history table like shown here:
Using the Shortcode Builder
[donation_history] shortcode is available within the Shortcode Builder, but no arguments are exposed in the builder. Simply choose “Donation History” from the list, then “Insert Shortcode” and it will be inserted into the page for you.
The following arguments are available to use in conjunction with the
id=> true/false (default is “true”). Show or hide the donation “ID” column.
date=> true/false (default is “true”). Show or hide the date the donation was made as a column.
donor=> true/false (default is “false”). Show or hide a column with the donor’s full name.
amount=> true/false (default is “true). Show or hide a column with the donation amount.
status=> true/false (default is “false”). Show or hide a column reflecting the payment status of the donation.
payment_method=> true/false (default is “false”). Show or hide a column reflecting the payment gateway name the donation was made with.
Moving the Donation History Page
Most likely you won’t ever have to move or edit this shortcode. However, if you do need to switch the shortcode to another page simply insert it the code into any page and update the “Donation History Page” setting found under Give > Settings > General:
This shortcode is required to be on a WordPress page (not post) and the page must be set appropriately under Give > Settings > General.