# Wp-discourse force login to WordPress

**URL:** <https://meta.discourse.org/t/wp-discourse-force-login-to-wordpress/118418>\
**Category:** Product Support\
**Tags:** wordpress\
**Created:** [May 22, 2019, 3:05pm UTC](https://meta.discourse.org/t/wp-discourse-force-login-to-wordpress/118418 "2019-05-22T15:05:58Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [May 22, 2019, 3:05pm UTC](https://meta.discourse.org/t/wp-discourse-force-login-to-wordpress/118418/1 "2019-05-22T15:05:58Z")

</div>

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?

---

_[View the full topic](https://meta.discourse.org/t/wp-discourse-force-login-to-wordpress/118418)._
