Using Discourse with s2member

Generally, there is a hook in WordPress that gets called when someone changes level and you use that to make an API call to change their group membership in discourse.