[memb_update_tags]

Description

An action shortcode that modifies the current user's tags during page render. Processes comma-separated lists of tag IDs; any tag appearing in both lists is removed from both so add and remove never conflict.

This shortcode returns no output. Common uses include applying a tag the first time a member views a lesson, or removing a "onboarding" tag after they reach a key page.

Shortcode Examples

Add tags 123 and 124 on view:

[memb_update_tags add="123,124"]

Swap tag 123 for tag 456:

[memb_update_tags add="456" remove="123"]

Shortcode Parameters

add

Comma-separated tag IDs to add to the current user. Default: ''.

remove

Comma-separated tag IDs to remove from the current user. Default: ''.

Shortcode Attributes

Attribute Value
Conditional No
Nestable No
Accepts formatting No