Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product
Vanilla 2.6 is here! It includes security fixes and requires PHP 7.0. We have therefore ALSO released Vanilla 2.5.2 with security patches if you are still on PHP 5.6 to give you additional time to upgrade.
Please upgrade to 2.3 here. The 2.2 and earlier branches are no longer being updated.

Use JsConnect to Assign User role


is there a way I could link a button coming from Wordpress to Vanilla get the user and assign a custom existing role?

Basically I want only my premium customers to have access to the premium forums I have so I was thinking of adding a custom button that only my premium users see in wordpress, I can do that, this will act as a link to the forum, when the user clicks that, we get the user email pass that to vanilla using the jsConnect maybe then add the custom role.

hopefully this makes sense
if there's a better way to do this, please tell me

thank you


  • donovanbdonovanb New
    edited October 2017

    Basically I want only my premium customers to have access to the premium forums

    Hi, are you using the wordpress Vanilla plugin? From what I understand, vanilla will propagate roles automatically if you have an equally named role in Vanilla.

    Edit: The longer story to this is that you can define, let's say, an 'Editor' Role in Vanilla, then make it a 'Default Type' of moderator.

    The above will automatically make any Wordpress 'Editor's moderators of the Vanilla forum.


  • I'll try that, I didn't know you had to have the role in both for that to work


Sign In or Register to comment.