Core Plugin Shortcodes

This page contains a demo for Wishlist Smart Shortcodes – Core Plugin Shortcodes.

The content add-on includes 16 different shortcodes as explained in the below tables.

Be sure to follow the “How to experiment with the shortcodes” sections.

The Core plugin’s shortcodes are divided to:

Content Related Shortcodes

PurposeShortcode
Display the content to members who are associated with any level specified in the "levels" parameter[ wlss_display_to_members_in_any_level ]
Display the content to members who are associated with all the levels specified in the "levels" parameter[ wlss_display_to_members_in_all_levels ]
Display the content to members who are associated with the exact levels specified in the "levels" parameter[ wlss_display_to_members_in_exact_levels ]
Hide the content from members who are associated with any level specified in the "levels" parameter[ wlss_hide_from_members_in_any_level ]
Hide the content from members who are associated with all the levels specified in the "levels" parameter[ wlss_hide_from_members_in_all_levels ]
Hide the content from members who are associated with the exact levels specified in the "levels" parameter[ wlss_hide_from_members_in_exact_levels ]

Display Content to members in ANY level

* The content updates automatically using the shortcode in the table (You can view the shortcode by editing this page)

[wlss_display_to_members_in_any_level levels=”Pro,,Premium”]

This content is displayed to any member associated with Pro / Premium / Pro+Premium levels

[/wlss_display_to_members_in_any_level]

Display Content to members in ALL levels

* The content updates automatically using the shortcode in the table (You can view the shortcode by editing this page)

[wlss_display_to_members_in_all_levels levels=”Free,,Pro”]

This content is displayed to any member associated with Free + Pro levels only

[/wlss_display_to_members_in_all_levels]

Display Content to members in EXACT levels

* The content updates automatically using the shortcode in the table (You can view the shortcode by editing this page)

[wlss_display_to_members_in_exact_levels levels=”Free,,Pro,,Premium”]

This content is displayed to any member associated with Free + Pro + Premium levels only

[/wlss_display_to_members_in_exact_levels]

How to experiment with the shortcodes:

  • Create your demo website in this link
  • Change the membership levels in the shortcode and the membership levels specified under your user (in Wishlist Member menu > Levels)
  • Refresh this page and see how the content inside the shortcode is displayed to / hidden accordingly

– – – – – – – –

Hide Content from members in ANY level

* The content updates automatically using the shortcode in the table (You can view the shortcode by editing this page)

[wlss_hide_from_members_in_any_level levels=”Free,,Pro”]

This content is hidden from any member associated to the levels: Free / Pro / Free + Pro

[/wlss_hide_from_members_in_any_level]

Hide Content from members in ALL levels

* The content updates automatically using the shortcode in the table (You can view the shortcode by editing this page)

[wlss_hide_from_members_in_all_levels levels=”Pro,,Premium,,Platinum”]

This content is hidden from any member associated to all these levels: Pro + Premium + Platinum (can be associated with other levels as well)

[/wlss_hide_from_members_in_all_levels]

Hide Content from members in EXACT levels

* The content updates automatically using the shortcode in the table (You can view the shortcode by editing this page)

[wlss_hide_from_members_in_exact_levels levels=”Premium,,Platinum”]

This content is hidden from any member associated to exactly these levels: Premium + Platinum (cannot be associated with other levels as well)

[/wlss_hide_from_members_in_exact_levels]

How to experiment with the shortcodes:

  • Create your demo website in this link
  • Change the membership levels in the shortcode and the membership levels specified under your user (in Wishlist Member menu > Levels)
  • Refresh this page and see how the content inside the shortcode is displayed to / hidden accordingly

 

Members Related Shortcodes

* The numbers under the “Shortcode in Action” column update automatically using the shortcodes

PurposeShortcodeShortcode in Action
Total number of unique members in all membership levels[ wlss_total_members_in_all_levels ][wlss_total_members_in_all_levels]
Total number of active members in all membership levels (not unique)[ wlss_total_active_members_in_all_levels ][wlss_total_active_members_in_all_levels]
Total number of cancelled members in all membership levels (not unique)[ wlss_total_cancelled_members_in_all_levels ][wlss_total_cancelled_members_in_all_levels]
The total number of members in a specific membership level (not unique)[ wlss_members_count level="Free" ][wlss_members_count level="Free"]
The total number of members in a specific membership level (not unique)[ wlss_members_count level="Pro" ][wlss_members_count level="Pro"]
The total number of members in a specific membership level (not unique)[ wlss_members_count level="Premium" ][wlss_members_count level="Premium"]
The total number of members in a specific membership level (not unique)[ wlss_members_count level="Platinum" ][wlss_members_count level="Platinum"]


How to experiment with the shortcodes:

  • Create your demo website in this link
  • Change membership levels to users in Wishlist Member menu > Member
  • Refresh this page and see how the numbers under the “Shortcode in Action” column change automatically

 

Protection Related Shortcodes

* The numbers under the “Shortcode in Action” column update automatically using the shortcode

PurposeShortcodeShortcode in Action
Total number of unique protected posts in a specific level as defined in the "levels" parameter (Free)[ wlss_protected_posts_count levels="Free" ]
[wlss_protected_posts_count levels="Free"]
Total number of unique protected posts in a specific level as defined in the "levels" parameter (Pro)[ wlss_protected_posts_count levels="Pro" ]
[wlss_protected_posts_count levels="Pro"]
Total number of unique protected pages in a specific level as defined in the "levels" parameter (Pro+Premium)[ wlss_protected_pages_count levels="Pro,,Premium" ]
[wlss_protected_pages_count levels="Pro,,Premium"]
Total number of unique protected pages in a specific level as defined in the "levels" parameter (Platinum)[ wlss_protected_pages_count levels="Platinum" ]
[wlss_protected_pages_count levels="Platinum"]
Total number of unique protected categories in a specific level as defined in the "levels" parameter (Premium)[ wlss_protected_categories_count levels=Premium" ]
[wlss_protected_categories_count levels="Premium"]
Total number of unique protected posts in all levels[ wlss_protected_posts_count_in_all_levels ]
[wlss_protected_posts_count_in_all_levels]
Total number of unique protected pages in all levels[ wlss_protected_pages_count_in_all_levels ]
[wlss_protected_pages_count_in_all_levels]
Total number of unique protected categories in all levels[ wlss_protected_categories_count_in_all_levels ]
[wlss_protected_categories_count_in_all_levels]

How to experiment with the shortcodes:

  • Create your demo website in this link
  • Enter any post / page / category you like and change its protection settings
  • Refresh this page and see how the numbers in the right row of the table (under the “Shortcode in action” column) changes automatically

 

Recommended Resources

We recommend going over the information about each of the shortcodes you experiment with in the plugin’s manual, as it will help you understand each plugin better, plus, it includes examples and additional parameters available.