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

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [May 22, 2019, 4:17pm UTC](https://meta.discourse.org/t/wp-discourse-force-login-to-wordpress/118418/2 "2019-05-22T16:17:08Z")

</div>

The easiest solution might be to find out if there is an action hook that is fired when a membership is added. [wc\_memberships\_user\_membership\_saved](https://docs.woocommerce.com/document/woocommerce-memberships-admin-hook-reference/#wc_memberships_user_membership_saved) might work.

---

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