[Documentation](https://groundhogg.io/documentation/) » [Action Hooks](https://groundhogg.io/documentation/#doc-action-hooks)

# groundhogg/contact/tags_removed

Published Wednesday, June 10, 2026 · Last updated Wednesday, June 10, 2026

Fires once after a batch of tags has been removed from a contact. The complement to `groundhogg/contact/tags_applied`.

```

do_action( 'groundhogg/contact/tags_removed', $contact, $tag_ids );
```

You will receive the `Contact` object as the first argument and an array of removed tag IDs as the second.

## Example

```

add_action( 'groundhogg/contact/tags_removed', 'my_extension_on_tags_removed', 10, 2 );

/**
 * Revoke membership access when the member tag is removed.
 *
 * @param \Groundhogg\Contact $contact
 * @param int[]                $tag_ids
 *
 * @return void
 */
function my_extension_on_tags_removed( $contact, $tag_ids ) {
    if ( in_array( MY_EXTENSION_MEMBER_TAG_ID, $tag_ids ) ) {
        my_extension_revoke_access( $contact->get_user_id() );
    }
}
```
