[lcw_has_not_any_memberships]

Estimated reading: 2 minutes 48 views

🚫 Shortcode: [lcw_has_not_any_memberships]

Description

The [lcw_has_not_any_memberships] shortcode is the opposite of [lcw_has_any_memberships].
It allows you to show content only to users who do not have certain memberships.
If a user has any of the listed memberships, they cannot see the enclosed content.
Otherwise, the content will be displayed.


🧩 Usage

[lcw_has_not_any_memberships memberships="level_1"]
This content will be visible to users who do NOT have the membership level_1.
[/lcw_has_not_any_memberships]

This shortcode is ideal for hiding specific content (text, images, sections, etc.) from members who already belong to certain membership levels.


🧠 Example

[lcw_has_not_any_memberships memberships="level_1, level_2"]
This section will be visible only to users who do NOT have the memberships "level_1" or "level_2".
[/lcw_has_not_any_memberships]

⚙️ Parameters

Attribute Description Example
memberships A comma-separated list of membership slugs or IDs.
If the user has any of these memberships, the content will be hidden.
memberships="level_1, gold, premium"

🚫 When Access is Denied

If a user has any of the memberships listed in the shortcode,
the enclosed content will not be shown to them.


✅ Ideal Use Cases

  • Showing promotional or upgrade content to non-members.
  • Displaying “Join Now” buttons to users who don’t have a membership yet.

Leave a Reply

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

Share this Doc

[lcw_has_not_any_memberships]

Or copy link

CONTENTS