I’ve got a site that’s using WooCommerce Memberships and has Discourse as the SSO master.
For reasons that I don’t understand,
wc_memberships_user_membership_status_changed doesn’t fire when a new user membership is added (some how that’s not a change?).
So I’ve added a hook on
wp_login. The only bummer is that when someone subscribes, they need to log out/in to WordPress to get added to the Discourse group.
Would it work to add a webhook in Discourse that fires on
user event that could solve this?