[lcw_has_any_memberships]
🔐 Shortcode: [lcw_has_any_memberships]
The [lcw_has_any_memberships] shortcode allows you to show or hide content based on a user’s active membership(s). It’s perfect for displaying exclusive content (text, images, videos, etc.) to users who belong to specific membership levels.
🧩 Usage
[lcw_has_any_memberships memberships="level_1, level_2, level_3"]
Your protected content goes here.
[/lcw_has_any_memberships]
This content will only be visible to users who have at least one of the memberships listed in the memberships attribute.
If the user doesn’t have any of the specified memberships, the content will be hidden.
🧠 Example
[lcw_has_any_memberships memberships="level_1"]
This content will be visible only to users with the membership level_1.
[/lcw_has_any_memberships]
You can also include multiple memberships:
[lcw_has_any_memberships memberships="gold, silver"]
Welcome to our premium content area!  
This section is visible to Gold or Silver members.
[/lcw_has_any_memberships]
⚙️ Parameters
| Attribute | Description | Example | 
|---|---|---|
memberships | 
A comma-separated list of membership slugs or IDs that can access the content. | memberships="level_1, gold, vip" | 
🚫 When Access is Denied
If the logged-in user doesn’t have any of the listed memberships, the enclosed content won’t be displayed.
✅ Ideal Use Cases
- Showing premium lessons or downloads to subscribed members.
 - Hiding bonus content for non-members.
 - Displaying member-only announcements or deals.
 
