BuddyDev

Search

BuddyPress Member Types Pro – assigning WP Roles on subdomains

  • Participant
    Atlantis on #17659

    Hi,
    we bought the Buddy Press Member Types Pro.

    Our site:
    Subdomain Based WordPress Multisite Installation.
    Wordpress version 4.9.8.
    BuddyPress 3.2.0 (network activate)
    BuddyPress Member Types Pro 1.2.3 (network activate)
    BuddyPress User Profile Tabs Creator Pro 1.1.1
    Paid Memberships Pro 1.9.5.4
    Paid Memberships Pro – Multisite Membership Add On (on subdomains)
    Paid Memberships Pro – BuddyPress Add On 1.1.1
    User Role Editor 4.45
    BadgeOS 1.4.11
    BadgeOS Community Add-On 1.2.4
    LearnDash LMS
    BuddyBoss theme 2.4.9

    Global settings for BuddyPress Member Types Pro:
    1. Add user to the site on registration – Yes;
    2. Use default association specified below.
    Roles are the same at main site and all subdomains.

    We assign BuddyPress Member Types by Membership Level with Paid Memberships Pro (PMPro – BuddyPress Add On) on the main site.
    https://i.imgur.com/zr5a0W6.png

    When the member type changes:
    On the main site everything changes correctly.
    If the user has already been registered on a subdomain – member type and role assign correctly.
    But if the same user has not been registered to a other subdomain and is assigned after – in this subdomain member type assign correctly, but the role does not change.

    How can this problem be solved?

    Thank you.

  • Keymaster
    (BuddyDev Team)
    Posts: 24212
    Brajesh Singh on #17663

    Hi Atlantis,
    Thank you for using the plugin.

    I am sorry but there is no feasible solution for this case. I will explain the issue.

    1. You have set a member type to trigger role change
    2. You have also setup role to trigger member type change

    Now, when you add a user on a sub site with a specific role, you want the role to trigger the member type change(works) and then this member type change to trigger role change(does not work).

    It does not work as it will cause an infinite cycle role triggering membertype triggering role. To avoid this loop, we only allow either member type to role or role to member type in one transaction.

    Hope it clarifies.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved