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

# groundhogg/contact/tag_applied

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

Fires each time a single tag is applied to a contact. When multiple tags are applied at once this hook fires once per tag. For a single hook that fires after the full batch, use `groundhogg/contact/tags_applied`.

```

do_action( 'groundhogg/contact/tag_applied', $contact, $tag_id );
```

You will receive the `Contact` object as the first argument and the integer tag ID as the second.

## Example

```

add_action( 'groundhogg/contact/tag_applied', 'my_extension_on_tag_applied', 10, 2 );

/**
 * Grant VIP access when the VIP tag is applied.
 *
 * @param \Groundhogg\Contact $contact
 * @param int                  $tag_id
 *
 * @return void
 */
function my_extension_on_tag_applied( $contact, $tag_id ) {
    if ( $tag_id !== MY_EXTENSION_VIP_TAG_ID ) {
        return;
    }

    my_extension_grant_vip_access( $contact->get_email() );
}
```
