Programatically prevent redirection
-
Hi there,
I’m the developer of Charitable, which is a donation plugin. I’m trying to troubleshoot an issue one of our mutual users is experiencing to do with email verification.
We have an email verification process in Charitable, which donors complete to access their entire donation history if they have made donations when they weren’t logged in. The email verification link gets sent correctly, and the link ends up being something like this:
http://charitable.local/user/email-verification/?key=4Hp6GHF65njbTir1s0Kw&login=eric98364%40whatever.com&redirect_to=http%3A%2F%2Fcharitable.local%2Fmy-donations%2FThe problem is that when you click on this link, Ultimate Member redirects the user to their profile page (
http://charitable.local/user/eric98364whatever-com/) before Charitable has a chance to process the verification. I found theum_access_check_individual_term_settingshook which looks like the last hook available before UM does its redirect, but I don’t see any way to _prevent_ the redirect cleanly. i.e. I can’t seem to set theallow_accessproperty totruesince it’s a private var.Any ideas on how we can collaborate to make Charitable & UM play nice?
Cheers,
Eric
The topic ‘Programatically prevent redirection’ is closed to new replies.