[lcw_remove_tags]

Estimated reading: 1 minute 71 views

❌ Shortcode: [lcw_remove_tags]

Description

The [lcw_remove_tags] shortcode allows you to remove tags from a WordPress user when they visit a page or post.
It works exactly opposite to [lcw_set_tags] — instead of adding tags, it removes the specified tags from the user automatically.


🧩 Usage

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

[lcw_remove_tags tags='tag_names']

When a logged-in user visits this page, the tag(s) specified in the tags attribute will be removed from their profile automatically.


🧠 Examples

Single Tag:

[lcw_remove_tags tags='level_finished']

Multiple Tags:

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

This will remove all three tags from the visiting user.


⚙️ Parameters

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

💡 Tips

  • Use this shortcode to clean up or reset tags automatically when users visit a page.
  • Perfect for removing tags after a promotion ends or to update user segmentation automatically.

Leave a Reply

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

Share this Doc

[lcw_remove_tags]

Or copy link

CONTENTS