[lcw_set_tags]

Estimated reading: 1 minute 54 views

🏷️ Shortcode: [lcw_set_tags]

Description

The [lcw_set_tags] shortcode allows you to automatically apply tags to a WordPress user when they visit a page or post.
This is useful for segmenting users, tracking interactions, or triggering automation based on their activity.


🧩 Usage

Place the shortcode on any page, post, or content area like this:

[lcw_set_tags tags='tag_names']

When a logged-in user visits this page, the tag(s) specified in the tags attribute will be applied to them automatically.


🧠 Examples

Single Tag:

[lcw_set_tags tags='level_started']

Multiple Tags:

[lcw_set_tags tags='tag_name1, tag_name2, tag_3']

This will apply all three tags to the visiting user.


⚙️ Parameters

Attribute Description Example
tags Comma-separated list of tag names to apply to the user when they visit this page/post. tags='tag_name1, tag_name2, tag_3'

💡 Tips

  • Use this shortcode to automatically segment users when they view specific content.
  • Perfect for triggering tag-based automations or gated content access.

Leave a Reply

Your email address will not be published. Required fields are marked *

Share this Doc

[lcw_set_tags]

Or copy link

CONTENTS