# WP discourse - One wordpress multiple discourse instances

**URL:** https://meta.discourse.org/t/wp-discourse-one-wordpress-multiple-discourse-instances/212754
**Category:** WordPress
**Created:** [December 21, 2021, 8:49am UTC](https://meta.discourse.org/t/wp-discourse-one-wordpress-multiple-discourse-instances/212754 "2021-12-21T08:49:52Z")
**Posts on this page:** 1
**Showing post:** 14

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [January 31, 2023, 7:48am UTC](https://meta.discourse.org/t/wp-discourse-one-wordpress-multiple-discourse-instances/212754/14 "2023-01-31T07:48:45Z")

</div>

> [@pearsonified](#):
>
> Let’s say my users are on 1-year licenses, and their license expires. How can I automate the connection between WP and Discourse so access to the forums is only granted while a license is active?

It depends on what you’re using to “license” users on Wordpress. If you’re using WooCommerce you can use the plugin and approach described here.

> [@Sync WooCommerce Memberships with Discourse groups](https://meta.discourse.org/t/sync-woocommerce-memberships-with-discourse-groups/118485):
>
> This Plugin allows you to Sync WooCommerce Memberships with Discourse Groups. Pre-requisites For this to work you have to have [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) enabled, with either Wordpress or Discourse as the [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) provider. Steps Install this Wordpress plugin [GitHub - paviliondev/discourse-woocommerce](https://github.com/paviliondev/discourse-woocommerce). Use the Wordpress theme editor to update these numbers to the WooCommerce plan\_id and Discourse group id and group\_name you want to sync $member\_group\_map[] = (object) array('plan\_id' =\> 51,…

---

_[View the full topic](https://meta.discourse.org/t/wp-discourse-one-wordpress-multiple-discourse-instances/212754)._
