Title: Getting all groups names through function
Last modified: August 21, 2016

---

# Getting all groups names through function

 *  [cesrafa](https://wordpress.org/support/users/cesrafa/)
 * (@cesrafa)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/getting-all-groups-names-through-function/)
 * Hi,
 * Is there a way to get a list of all groups names through the API?
 * Something like
 * $array = get_groups();
 * $array = [Array
    0 => ‘Registered’ 1 => ‘OtherName1’ 2 => ‘OtherName2’ … ]
 * [https://wordpress.org/plugins/groups/](https://wordpress.org/plugins/groups/)

Viewing 1 replies (of 1 total)

 *  [ablancodev](https://wordpress.org/support/users/eggemplo/)
 * (@eggemplo)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/getting-all-groups-names-through-function/#post-4676764)
 * Hi,
    you can use this function:
 * [https://github.com/eggemplo/Groups-Utilities/blob/master/get_groups.php](https://github.com/eggemplo/Groups-Utilities/blob/master/get_groups.php)
 * cheers

Viewing 1 replies (of 1 total)

The topic ‘Getting all groups names through function’ is closed to new replies.

 * ![](https://ps.w.org/groups/assets/icon-256x256.png?rev=983146)
 * [Groups](https://wordpress.org/plugins/groups/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/groups/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/groups/)
 * [Active Topics](https://wordpress.org/support/plugin/groups/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/groups/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/groups/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [function](https://wordpress.org/support/topic-tag/function/)

 * 1 reply
 * 2 participants
 * Last reply from: [ablancodev](https://wordpress.org/support/users/eggemplo/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/getting-all-groups-names-through-function/#post-4676764)
 * Status: not resolved