Title: Programatically prevent redirection
Last modified: October 4, 2019

---

# Programatically prevent redirection

 *  [Eric Daams](https://wordpress.org/support/users/ericdaams/)
 * (@ericdaams)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/programatically-prevent-redirection/)
 * Hi there,
 * I’m the developer of [Charitable](https://wordpress.org/plugins/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%
   2F`
 * The 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 the `um_access_check_individual_term_settings`
   hook 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
   the `allow_access` property to `true` since it’s a private var.
 * Any ideas on how we can collaborate to make Charitable & UM play nice?
 * Cheers,
    Eric

Viewing 1 replies (of 1 total)

 *  Thread Starter [Eric Daams](https://wordpress.org/support/users/ericdaams/)
 * (@ericdaams)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/programatically-prevent-redirection/#post-11996640)
 * FYI: I have a couple open issues related to UM compatibility at [https://github.com/Charitable/Charitable/issues/710](https://github.com/Charitable/Charitable/issues/710)&
   [https://github.com/Charitable/Charitable/issues/711](https://github.com/Charitable/Charitable/issues/711).

Viewing 1 replies (of 1 total)

The topic ‘Programatically prevent redirection’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-member/assets/icon-256x256.png?rev=3160947)
 * [Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin](https://wordpress.org/plugins/ultimate-member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-member/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-member/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Eric Daams](https://wordpress.org/support/users/ericdaams/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/programatically-prevent-redirection/#post-11996640)
 * Status: not resolved