Restricting Content Shortcode

Hi there,

I’m using Woocommerce Memberships,

There is shortcode available to hide away certain sections of a page, if you don’t want to hide the page entirely.

I’m trying to hide a section. It says that it’s possible

" The [wcm_restrict] shortcode provides an easy way to restrict blocks of content within a page or post. This is most useful when you don’t want to restrict and entire page or post, but portions of the content should only be visible to members."

Could you please advice how I can implement the shortcode to hide a section please?

Thank you

Hi @ifkda,

Thanks for writing to us.

Although it is a third party plugin and not part of our support,
I would like to suggest a few ways through which it can be possible. Please build a section with Global Blocks, then within the builder, you can add text or raw_content element to add your shortcode wrapping the global block shortcode.

Like : [wcm_restrict][cs_gb id=50][/wcm_restrict]

I would also like to enlight a few sections from the plugin documentation which may help you.

The plugin provides there type of restriction on the content

  1. Restrict content to members only to know more on this please go to the link:https://docs.woocommerce.com/document/woocommerce-memberships-restrict-content/#section-10

  2. Restrict content to specific members to know more on this please go the link: https://docs.woocommerce.com/document/woocommerce-memberships-restrict-content/#section-11

  3. Delay restricted content access to know more on this please go to this link: https://docs.woocommerce.com/document/woocommerce-memberships-restrict-content/#section-12

Hope this helps.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.