everettejbobwebber
Forum Replies Created
-
Thank you for the updated plugin extension! I disabled all the custom code I had been using and ran just the code you sent. It acts as expected as far as making new users verify by clicking the emailed link and then switching their accounts to Waiting for admin approval and sending me the expected email. However, the thing that breaks is that when they click the verification link in their email, it no longer redirects them to the custom URL I have set (a simple page that informs them that they are one step closer to being setup and need to just wait for the Admin to verify their Club Membership). Instead, it shows them the exact same custom message I setup for when they initially applied that tells them to look for a link sent to them by email.
I have reverted back to my custom code for now. If you need more details of my setup / needs I can try to clarify further. Thank you so much for your help on this! I think your code would work perfectly if it didn’t break the redirect to the custom URL after the user clicks the email activation link.
Thanks,
Everette Jbob Webber
That is already disabled.
I just put in the code you suggested with the exact same result I previously had. The Status changes as expected from “Waiting email verification” to “Pending administrator review” but no email is sent to me (admin) telling me that a user is waiting for my review.
Here is a link to a screenshot so you can verify my “email” settings:
This isn’t making much sense. . .
thanks,
Everette Jbob Webber
Thank you,
can you please clarify? In my code:
add_action( ‘um_after_email_confirmation’, ‘um_after_email_confirmation_admin_approval’, 10, 1 );
function um_after_email_confirmation_admin_approval( $user_id ) {
um_fetch_user( $user_id );
UM()->user()->pending();}
which part do I replace with your code:
UM()->common()->users()->set_as_pending( $user_id, true );
Do I replace all of:
um_fetch_user( $user_id );
UM()->user()->pending();Or just:
UM()->user()->pending();
I disabled the “Your Account Is Pending Review” email block that goes to the user since I explain all the steps being taken on the URL page they are directed to when they click the Verify Link in their email.
I enabled the “Account Needs Review Notification” email block that goes to the admin email.
Thanks,
Everette Jbob Webber
- This reply was modified 9 months, 1 week ago by everettejbobwebber.