# User removed automatically from Custom groups

**URL:** https://meta.discourse.org/t/user-removed-automatically-from-custom-groups/192989
**Category:** WordPress
**Created:** [June 7, 2021, 2:54pm UTC](https://meta.discourse.org/t/user-removed-automatically-from-custom-groups/192989 "2021-06-07T14:54:47Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![tanveerJF](https://avatars.discourse-cdn.com/v4/letter/t/a4c791/32.png) [@tanveerJF](https://meta.discourse.org/u/tanveerJF)
#### Post date: [June 7, 2021, 2:54pm UTC](https://meta.discourse.org/t/user-removed-automatically-from-custom-groups/192989/1 "2021-06-07T14:54:47Z")

</div>

Hi Support Team,  
We are facing issue that some of our user removed automatically from some of our groups but there subscription is active in WordPress which is cause the removal. also I can,t find the file system for discourse on our server can you guide me how can i have the access to that. This is the URL of our discourse “[https://community.acvr.org/](https://community.acvr.org/)”. here is attach the screenshot of custom group section which was automatically remove the sucscriptions for user.

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/0/208608da668f1113484343651fbaaa4ece7c96e2.png)

---

<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: [June 7, 2021, 9:54pm UTC](https://meta.discourse.org/t/user-removed-automatically-from-custom-groups/192989/2 "2021-06-07T21:54:49Z")

</div>

Hey @tanveerJF are you saying you have some kind of Wordpress to Discourse group sync and it’s not working properly?

If so, you’ll need to give us more information on how you’ve set that up, for example what technology you’re using or what guide you followed?. There are a number of ways to sync Wordpress groups with Discourse groups.

---

<div class="post-metadata">

### Author: ![tanveerJF](https://avatars.discourse-cdn.com/v4/letter/t/a4c791/32.png) [@tanveerJF](https://meta.discourse.org/u/tanveerJF)
#### Post date: [June 7, 2021, 10:28pm UTC](https://meta.discourse.org/t/user-removed-automatically-from-custom-groups/192989/3 "2021-06-07T22:28:53Z")

</div>

We are using wp-discourse plugin to sync the discourse with WordPress Woo Commerce subscription.

---

<div class="post-metadata">

### Author: ![tanveerJF](https://avatars.discourse-cdn.com/v4/letter/t/a4c791/32.png) [@tanveerJF](https://meta.discourse.org/u/tanveerJF)
#### Post date: [June 7, 2021, 10:54pm UTC](https://meta.discourse.org/t/user-removed-automatically-from-custom-groups/192989/4 "2021-06-07T22:54:20Z")

</div>

This is the link to the plugin we are using: [WP Discourse – WordPress plugin | WordPress.org](https://wordpress.org/plugins/wp-discourse/)  
The user’s memberships are synced with the discourse groups, when a specific subscription ends, the user gets removed from that specific group, but the problem is, currently the users are randomly being removed from the discourse groups even though their subscription is working fine. This website was developed by another developer, and if you want, I can provide you the delegated access so you can take a look through it.

---

<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: [June 8, 2021, 10:39am UTC](https://meta.discourse.org/t/user-removed-automatically-from-custom-groups/192989/5 "2021-06-08T10:39:44Z")

</div>

There isn’t official support for Wordpress → WooCommerce → Discourse membership integration. It will require a developer to look at your specific implementation of it.

Implementations of WooCommerce integrations can vary a fair bit, so it’s a bit tricky to help you in this context. If you are no longer in contact with the developer who developed the integration, you can hire another developer in the #Marketplace.

Whomever you hire to work on it for you will find this discussion helpful

> [@Manage group membership in Discourse with WP Discourse SSO](https://meta.discourse.org/t/managing-discourse-group-membership-with-wp-discourse-sso/74724):
>
> [WP Discourse](https://github.com/discourse/wp-discourse) functions The [WP Discourse](https://github.com/discourse/wp-discourse) plugin has a couple of functions that can be used to associate WordPress users with Discourse groups. These functions are only enabled on sites that are using WordPress as the SSO provider for Discourse. add\_user\_to\_discourse\_group( $user\_id, $group\_names ) [View Code](https://github.com/discourse/wp-discourse/blob/main/lib/utilities.php#L278-L301) remove\_user\_from\_discourse\_group( $user\_id, $group\_names ) [View Code](https://github.com/discourse/wp-discourse/blob/main/lib/utilities.php#L303-L326) Each of these functions take the same two parameters: $user\_id: the WordPress user’s id $group\_names: a comma separat…
