Title: restrict shortcode
Last modified: August 22, 2016

---

# restrict shortcode

 *  [tpecop](https://wordpress.org/support/users/tpecop/)
 * (@tpecop)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/restrict-shortcode/)
 * Hello, when i use shortcode [membership level=”x”]content[/membership]
 * it just hide content without any notice. It not showing message to users that
   its premium only content here and they should login or register. Like when u 
   restrict whole category it shows message. Can you help me with shortcode. I want
   to hide part of content in post not whole post and users should see message about
   hidden content not just white space without any info. Thank you.
 * [https://wordpress.org/plugins/paid-memberships-pro/](https://wordpress.org/plugins/paid-memberships-pro/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jason Coleman](https://wordpress.org/support/users/strangerstudios/)
 * (@strangerstudios)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/restrict-shortcode/#post-5345367)
 * We don’t show a message by default, but you can use something like this to show
   non-members a link to purchase/etc.
 *     ```
       [membership level="0"]Non members will see this. Add a link to the checkout page.[/membership]
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘restrict shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/paid-memberships-pro_f1dacb.svg)
 * [Paid Memberships Pro - Content Restriction, User Registration, & Paid Subscriptions](https://wordpress.org/plugins/paid-memberships-pro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/paid-memberships-pro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/paid-memberships-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/paid-memberships-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/paid-memberships-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/paid-memberships-pro/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jason Coleman](https://wordpress.org/support/users/strangerstudios/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/restrict-shortcode/#post-5345367)
 * Status: not resolved