Paid Membership Pro Integration?
Quote from hellochito on February 27, 2019, 11:27 pmHello 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 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
Quote from Asgaros on February 27, 2019, 11:33 pmHello @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));
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));
Quote from hellochito on February 27, 2019, 11:36 pmPerfect. Thanks much!
Perfect. Thanks much!