# 在 Memberpress 中将用户设为非活动状态时使其失效

**URL:** https://meta.discourse.org/t/inactivate-user-when-made-inactive-on-memberpress/182748
**Category:** Support
**Created:** [2021年三月10日 13:19 UTC](https://meta.discourse.org/t/inactivate-user-when-made-inactive-on-memberpress/182748 "2021-03-10T13:19:39Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Per\_Jacobsson1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/per_jacobsson1/32/202417_2.png) [@Per\_Jacobsson1](https://meta.discourse.org/u/Per_Jacobsson1)
#### Post date: [2021年三月10日 13:19 UTC](https://meta.discourse.org/t/inactivate-user-when-made-inactive-on-memberpress/182748/1 "2021-03-10T13:19:39Z")

</div>

你好，

我是一名与某组织合作的开发者，该组织使用 Discourse 搭建了一个讨论论坛。

我有一个问题：  
他们正在 WordPress 上运行 Memberpress，而 Memberpress 是 Discourse 安装的“主系统”。  
换句话说，用户需要在 Memberpress 上登录，才能在 Discourse 中登录。

我的问题是：  
当用户在 Memberpress 中被停用（或移除）时，是否有一种方法可以同步在 Discourse 中将用户设为非活跃状态（或直接移除）？  
目前，这些用户仍会保持在 Discourse 中的登录状态。

谢谢！  
此致  
Per

---

<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: [2021年三月10日 13:58 UTC](https://meta.discourse.org/t/inactivate-user-when-made-inactive-on-memberpress/182748/2 "2021-03-10T13:58:17Z")

</div>

在 #Support > WordPress 频道中，有一些关于如何实现该集成的提示。除了将用户从群组中移除外，您还需要设置一个钩子，以便在订阅到期时将其注销。
