# Translate Wordpress roles to Discourse groups

**URL:** https://meta.discourse.org/t/translate-wordpress-roles-to-discourse-groups/258073
**Category:** WordPress
**Created:** [March 14, 2023, 7:49am UTC](https://meta.discourse.org/t/translate-wordpress-roles-to-discourse-groups/258073 "2023-03-14T07:49:28Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [March 14, 2023, 1:18pm UTC](https://meta.discourse.org/t/translate-wordpress-roles-to-discourse-groups/258073/2 "2023-03-14T13:18:18Z")

</div>

Hey there @Golaxo,

> [@Golaxo](#):
>
> I know that there are plugin-specific solutions (I am looking for one for a Woocommerce-site), but if the plugin handled roles it would solve them at once.

You put your finger on the issue here. The standard user roles in Wordpress are not translatable to Discourse: “editor”, “contributor”, etc don’t mean the same thing in Discourse as they do in Wordpress. There isn’t a use case that calls for this kind of “role” translation, and I don’t think that’s what you’re after either (but please correct me if I’m wrong).

What you’re after is a Discourse _groups_ sync for a specific provider, namely WooCommerce. As you alluded, there’s a solution for that 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,…

The reason there isn’t a “generic” version of this in the [WP Discourse](https://github.com/discourse/wp-discourse) plugin itself is because each Wordpress plugin that provides a “groups” feature does so in different ways. The way WooCommerce handles groups is different from how other Wordpress plugins do it.

But if you’re having issues with the WooCommerce membership sync you could always ask me about that in that topic 🙂

---

_[View the full topic](https://meta.discourse.org/t/translate-wordpress-roles-to-discourse-groups/258073)._
