The discussion is about integrating WordPress Single Sign-On (SSO) with Restrict Content Pro to manage user levels and groups in Discourse.
tomobrien wants to know how to set up levels during signup, which would carry over to Discourse, while simon is working on a plugin to achieve this functionality.
Later, deere joins the discussion, looking for help with integrating Restrict Content Pro with Discourse to sync paid memberships to a specific group. They share their code, which simon helps debug by suggesting the use of a debug.log file.
After debugging, deere discovers that the issue was with the code wrapped around the action and resolves it by removing the class_exists check. The plugin now works fine for adding and removing members from groups.
simon mentions that an upcoming plugin update will include an option for dealing with comments in private categories.
I have WP discourse working for SSO and Restrict Content Pro for subscription, signup, but I am wondering how to set up levels during signup … That carry over to discourse?
Are you committed to using Restricted Content Pro? There are quite a few different WordPress membership plugins. My plan is to make a general wp-discourse-groups plugin that will work for most of them, but at the moment I’m making a plugin specifically for the WishList Member plugin. When it’s finished, I think it will do everything that you are looking for.
I’ve written code for some WordPress subscription manager that used API calls to manage groups on WordPress. It shouldn’t be hard to set up WordPress groups that whatever group manager you uses could connect to.