Member type reassigned to users
-
Hi,
we have Buddyboss platform installed, also PMP Pro with some of it’s add-ons, including Paid Memberships Pro – BuddyPress & BuddyBoss Add On
We also have BuddyPress Auto Friendship Pro installed.
We manage subscriptions with Woocommerce & Woocommerce subscriptionsWe have created a list of users that gets autofollowed by any new user that gets created in system, and works correctly
We have this issue:
every time an automatic subscription renewal is done for any user, the hook that makes this user follow automatically every other user in the list, is triggered.
This because the Autofriendship plugin intercepts a Member type change on user, even that this is not true because there is no real change on users member type,From our analysis (and a regression test), it results that problem is caused by PMPro BuddyPress addon causing it.
https://github.com/strangerstudios/pmpro-buddypress/blob/dev/includes/member-types.php#L82
On that line, it seems you are not checking if a user already has the member type and calling the function to reassign.
Would be a solution to check if a user has the specific member type before trying to reassign?
Can you please check this and give us a solution?
- The topic ‘Member type reassigned to users’ is closed to new replies.