Please or Register to create posts and topics.

Paid Membership Pro Integration?

Hello Asgaros,

I love this forum plugin, and I’m excited at the community-building potential it’s added to my site. However, without having to manually assign usergroups to each of my site’s paid subscribers, is there a way to integrate Asgaros roles with Paid Membership Pro roles?

Essentially, I’d like for an Asgaros role to be assigned to a paid member immediately upon subscribing to my site via Paid Membership Pro — and vice versa: as soon as a member ceases their subscription they also lose their Asgaros forum role.

Thanks,
Chito

Hello @hellochito

I dont know the Paid Membership Pro plugin but I guess that it also has filters/hooks and an API available for developers. You can try to contact the developer of the plugin to get information about hooks which get fired after a member subscribed to your site via this plugin. Inside this hook you can call the following function to add an user to a specific usergroup – in this case an user with the id 42 gets added to the groups with the ids 13 and 37:

AsgarosForumUserGroups::insertUserGroupsOfUsers(42, array(13, 37));

 

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Perfect. Thanks much!