# Only allow access when user has a subscription plan on Memberpress

**URL:** https://meta.discourse.org/t/only-allow-access-when-user-has-a-subscription-plan-on-memberpress/188716
**Category:** WordPress
**Created:** [April 30, 2021, 3:39pm UTC](https://meta.discourse.org/t/only-allow-access-when-user-has-a-subscription-plan-on-memberpress/188716 "2021-04-30T15:39:32Z")
**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: [April 30, 2021, 4:24pm UTC](https://meta.discourse.org/t/only-allow-access-when-user-has-a-subscription-plan-on-memberpress/188716/2 "2021-04-30T16:24:21Z")

</div>

> [@Per\_Jacobsson1](#):
>
> Is there a way to only allow users access to Discourse if they have an active Memberpress plan?

Have a look at my first reply to this topic for details about how to restrict logins to Discourse: [How to prevent some WP users from being able to login to Discourse](https://meta.discourse.org/t/how-to-prevent-some-wp-users-from-being-able-to-login-to-discourse/93234). This is assuming that the WordPress site is functioning as the SSO provider for Discourse and that you are using the [WP Discourse](https://github.com/discourse/wp-discourse) plugin.

---

_[View the full topic](https://meta.discourse.org/t/only-allow-access-when-user-has-a-subscription-plan-on-memberpress/188716)._
