Get actual donation ID (Wordpress Post ID) from Sequential ID #7303
Unanswered
8verstudio-Chua
asked this question in
Developer Q&A
Replies: 1 comment
-
Hey @8verstudio-Chua Thanks for reaching out! You can try this:
Let me know if that works for you. I would also love to learn more about that custom plugin you are building, if you want to chat more about your integration please email me at |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm developing a custom plugin that includes a function to retrieve donation details. However, the ID I'm getting is the sequential ID, not the default donation ID that follows the WordPress post ID order. So when I attempt to retrieve the donation details using the code below:
give()->donations->getById($donationID);
I'm unable to retrieve the details.
Upon further investigation, I realized that the $donationID I'm receiving is 1, which corresponds to the GiveWP sequential ID, not the actual donation ID.
My question is, if I can only obtain this sequential ID, how can I retrieve the actual donation ID to get the donation details?
Beta Was this translation helpful? Give feedback.
All reactions