strangerstudios / pmpro-buddypress

Manage access to your BuddyPress Community using Paid Memberships Pro
https://www.paidmembershipspro.com/add-ons/buddypress-integration/
17 stars 21 forks source link

Recreate the login_redirect from the core PMPro version prior to 2.3 #69

Open kimcoleman opened 4 years ago

kimcoleman commented 4 years ago

I have had two support tickets now where they are using BuddyPress for user registration and the BuddyPress email activation feature. For versions of PMPro prior to v2.3, the login_redirect functionality more powerfully sent the user to the Membership Levels page after activation. Now, the user is instead taken to the homepage.

Here is a recipe that recreates the pre-2.3 functionality that both users were happy with using: https://gist.github.com/kimcoleman/fbfbbd6cb112e039b049146cae9ba989

Let's have a conversation about whether this exact recipe or something similar should be part of the BuddyPress Integration.

andrewlimaza commented 2 years ago

Keeping this ticket open, I like the idea of converting this gist to an official snippet (for anyone that needs this functionality).