# 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:** 3

<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, 4:25pm UTC](https://meta.discourse.org/t/wp-discourse-force-login-to-wordpress/118418/3 "2019-05-22T16:25:39Z")

</div>

Yeah, that was my idea! As it turns out, what `wc_memberships_user_membership_saved` actually does, doesn’t match the documentation. At all. It passes **two** parameters rather than the **three** documented (which are still different from the `status_changed` hook), and neither of them is what is documented there. (I can’t remember now what actually got passed, but I couldn’t figure out how to get the user or the membership ID out of it.)

I spent what seemed like a week on this yesterday before settling on making people log out/in to WordPress to make it work.

---

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