pipit_members_remove_tag()
Remove a tag from member (even if they are not logged in).
pipit_members_remove_tag($tag, $id_or_email)
This is useful when you need to programmatically remove a tag from a Perch member that is not logged in. Examples:
- Perch event listener
- webhooks
Parameters
Type | Description |
---|---|
String | Tag to remove |
Int/String | Member ID or email. Leave out or set to 0 to target the logged in member. |
Usage
// by email address
pipit_members_remove_tag('subscriber', '[email protected]');
// by ID
pipit_members_remove_tag('subscriber', 34);