# WordPress Membership Integration (Private Forum) with Discourse

**URL:** <https://meta.discourse.org/t/wordpress-membership-integration-private-forum-with-discourse/91438>\
**Category:** WordPress\
**Created:** [July 3, 2018, 3:36am UTC](https://meta.discourse.org/t/wordpress-membership-integration-private-forum-with-discourse/91438 "2018-07-03T03:36:47Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [July 4, 2018, 12:57am UTC](https://meta.discourse.org/t/wordpress-membership-integration-private-forum-with-discourse/91438/5 "2018-07-04T00:57:29Z")

</div>

I can’t take on any private work, but I can give you some help through this forum. Most of what you are looking to do is provided by the [WP Discourse](https://github.com/discourse/wp-discourse) plugin out of the box. By default, the [WP Discourse](https://github.com/discourse/wp-discourse) plugin will give all users on your WordPress site access to your Discourse forum. To limit access to users who have purchased a membership, we just need to know how to fill in this part of the code that I posted above:

```plaintext
/* Some condition that returns true if the user doesn't meet the membership requirement */

```

How to get the membership level for a user is documented here: [https://docs.woocommerce.com/document/woocommerce-memberships-function-reference/#section-6](https://docs.woocommerce.com/document/woocommerce-memberships-function-reference/#section-6). Anyone who has some experience with WordPress programming should be able to help with this. It won’t require any knowledge of Discourse to figure it out.

---

_[View the full topic](https://meta.discourse.org/t/wordpress-membership-integration-private-forum-with-discourse/91438)._
