I have a client that’s using s2member and wants users who are not at a specific membership level to be redirected to an info page rather than being logged in to Discourse. (Don’t want to have them log in as a member of a cannot-read-a-thing group, they want them not to be logged in at all.)
Looks like the s2member stuff I need is here: Package s2Member\API_Functions ( Functions ) | s2Member Codex
I’m sure that there is a hook in wp-discourse that I can call that does this, but I don’t know where to look to figure out what it is.
Presumably I can find the s2member docs to check whether they are paying, but I’d accept hints on that too!