Woo restriction feature 'wcm_restrict plans' in Pro builder

I am trying to create a ‘unified’ dashboard for a membership website and only show the relevant information regarding each users membership level.

I have found a lovely little snippet on the Woocomerce website and would LOVE to apply it to rows in the pro page builder but havent got a clue how to do it. If I put the snippet in to a ‘classic raw content’ element it wokrs perfently but I’d like to wrap entire rows with the code. Any ideas how to wrap builder chunks in shortcodes?

[wcm_restrict plans=“premium_silver, premium_gold”]
This piece of content is only visible to premium members with premium_silver or premium_gold active plans
[/wcm_restrict]

Hello @chris-w,

Thanks for writing in! If you want to wrap the builder with the shortcode, it would be best that your go to X > Global Blocks and create a block. When you global block content is done, take note of the shortcode and then wrap it with your wcm shortcode. Place the shortcode in your classic raw element in a page and you now have a block content that is visible to the premium members only. The code could be like this:

[wcm_restrict plans="premium_silver, premium_gold"]
[cs_gb id=123]
[/wcm_restrict]

Hope this helps.

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