# Получить группу Discourse, с которой связан пользователь

**URL:** <https://meta.discourse.org/t/get-discourse-group-user-is-associated-with/131884>\
**Category:** WordPress\
**Created:** [25.Октябрь.2019 16:25:09 UTC](https://meta.discourse.org/t/get-discourse-group-user-is-associated-with/131884 "2019-10-25T16:25:09Z")\
**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:** [25.Октябрь.2019 16:42:57 UTC](https://meta.discourse.org/t/get-discourse-group-user-is-associated-with/131884/2 "2019-10-25T16:42:57Z")

</div>

Вы вызываете функцию [WP Discourse](https://github.com/discourse/wp-discourse) `get_discourse_user`? Если да, то она должна возвращать группы пользователя в массиве `"groups"`.

---

_[View the full topic](https://meta.discourse.org/t/get-discourse-group-user-is-associated-with/131884)._
