Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement - Compatibility with BuddyPress (BuddyBoss) Registration. #35

Open
3 tasks done
kimwhite opened this issue May 10, 2022 · 1 comment
Open
3 tasks done

Comments

@kimwhite
Copy link

Describe the bug
When using the BuddyPress/Boss registrations form, Custom Roles are not assigned when using a snippet to add a default role .

To Reproduce
Steps to reproduce the behavior:

  1. Website with BuddyPress/Boss
  2. Set up site to use BuddyPress registration.
  3. Set up the level to assign multiple roles
  4. Add snippet to assign default PMPro Level at registration
  5. Go through Registration Process
  6. Only the default role is added to users profile.

Screenshots
Screen Shot 2022-05-10 at 8 13 49 AM

Screen Shot 2022-05-10 at 8 15 27 AM

Expected behavior
Member should be assigned all roles for that level.

Isolating the problem (mark completed items with an [x]):

  • I have deactivated other plugins and confirmed this bug occurs when only Paid Memberships Pro plugin is active.
  • This bug happens with a default WordPress theme active, or Memberlite.
  • I can reproduce this bug consistently using the steps above.

WordPress Environment

``` WordPress 5.9.3 PMPro 2.8 Roles Add On 1.4.1 ```
@kimwhite kimwhite changed the title Bug - Roles and BuddyPress (BuddyBoss) Registration. Enhancement - Compatibility with BuddyPress (BuddyBoss) Registration. May 10, 2022
@andrewlimaza
Copy link
Collaborator

andrewlimaza commented Oct 23, 2024

I waas able to replicate this, I believe the issue here is that BuddyPress/BuddyBoss is owning this. Same goes for the edit user profile page, it may update the user roles based on the submission of this data.

We would need to add compatibility for this, or run our code really really late (hopefully that's the simple fix).

The snippet here could be run regularly to assign roles to users/members in this scenario - #8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants