Title: Updated Groups Hook?
Last modified: March 27, 2019

---

# Updated Groups Hook?

 *  Resolved [Howdy_McGee](https://wordpress.org/support/users/howdy_mcgee/)
 * (@howdy_mcgee)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/updated-groups-hook/)
 * I’m looking to trigger an action whenever the users groups have been updated.
   Looking at the documentation I see there’s `groups_updated_user_group` action
   hook but looking at the codebase that hook never seems to get triggered.
 * The main place the hook lives is `Groups_User_Group::update()` but the first 
   conditional is looking for a variable that is not in scope ( and will not evaluate
   to true ). I also don’t see anywhere in the codebase where `Groups_User_Group::
   update()` would be called.
 * What is an appropriate hook to use after the users groups have been updated?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Kento](https://wordpress.org/support/users/proaktion/)
 * (@proaktion)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/updated-groups-hook/#post-11454191)
 * Hi,
 * These two actions:
 * – `groups_created_user_group`
    – `groups_deleted_user_group`
 * The one you mention is because the relation itself isn’t changed so the update
   wouldn’t do anything (at least for now).
 * Cheers

Viewing 1 replies (of 1 total)

The topic ‘Updated Groups Hook?’ 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

 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [group](https://wordpress.org/support/topic-tag/group/)
 * [hook](https://wordpress.org/support/topic-tag/hook/)

 * 1 reply
 * 2 participants
 * Last reply from: [Kento](https://wordpress.org/support/users/proaktion/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/updated-groups-hook/#post-11454191)
 * Status: resolved