Title: Create group via PHP function?
Last modified: October 26, 2017

---

# Create group via PHP function?

 *  Resolved [wp_user1](https://wordpress.org/support/users/wp_user1/)
 * (@wp_user1)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/create-group-via-php-function/)
 * How can I create a Group using the Group function via another plugin?
    I would
   prefer a function for this instead of direct database access.

Viewing 1 replies (of 1 total)

 *  [gtsiokos](https://wordpress.org/support/users/gtsiokos/)
 * (@gtsiokos)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/create-group-via-php-function/#post-9634695)
 * Hi,
 * I think you should have a look at [Groups_Group::create(array $map), ](http://api.itthinx.com/groups/source-class-Groups_Group.html#241-313)
   if you are familiar with PHP. With this method you can create a group with the
   parameters defined in the $map array.
    FYI, the rest of the Groups plugin API
   resides [here](http://api.itthinx.com/groups/).
 * Hope it helps.
 * Kind regards,
    George
    -  This reply was modified 8 years, 7 months ago by [gtsiokos](https://wordpress.org/support/users/gtsiokos/).

Viewing 1 replies (of 1 total)

The topic ‘Create group via PHP 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [gtsiokos](https://wordpress.org/support/users/gtsiokos/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/create-group-via-php-function/#post-9634695)
 * Status: resolved