Hi there again.
An update on this and for anyone reading. I contacted Mini Orange (the SSO plugin developer) support. They added into the plugin the generic "
user_register " hook into their plugin, I updated the plugin (I'm using the premium version) and now the specified courses get added to users student profiles on first sign in via SSO.
So I hope this post helps others. Here is what we did to achieve this:
- Installed this single sign on plugin
- Installed this user role editor plugin
- Created a custom user role (duplicated the current WPLMS student role and gave a new name)
- Added the code given by Logan above to WPLMS customizer plugin.
- Added the user role slug and course ID's to the code mentioned above.
Hope this helps someone else who may be having this issue or need. :)
Thanks too Logan!