Create a WP user account in backend after a manual donation #7205
Unanswered
Gilles2705
asked this question in
Developer Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
When registration/login is enabled on the GiveWP installation, and a donor already has an account on the installation, he can only make a donation by logging in first. If the email address of the account is provided and the donor is NOT logged in, an error is shown.
Ideally, people, also registered donors, should be able to make a new donation without having to log in, just as is possible with email access / users without registered accounts.
This issue was written in 2021 but not fixed (https://feedback.givewp.com/bug-reports/p/donors-with-account-can-only-donate-again-while-logging-in)
Then, I wrote a little snippet which creates a WP user account and associates it to the Give WP donor when a new donation has been made thru the GiveWP form thru front-end.
Everything works fine in front-end, but when creating a new donation in BACK-END via the MANUAL DONATION addon, the WP USER ACCOUNT IS NOT CREATED :(
Is there any problem using the "give_insert_payment" hook or "wp_create_user()" in back-end ?
Thanks for helping !
Gil
Here's the little snippet :
Beta Was this translation helpful? Give feedback.
All reactions