• Log In
  • Welcome
  • Features
  • Pricing
  • Documentation
  • Add Ons
  • Payment Gateways
  • Support
  • Showcase
  • Blog
  • Contact

Log In


Join Now | Lost Password?

Skip to content

Paid Memberships Pro

WordPress Membership Plugin
  • Log In
  • Choose a Plan
  • Features
    • Product Overview
    • Screenshots
    • About Us
  • Pricing
  • Documentation
  • Add Ons
  • Gateways
  • Support
  • Showcase
  • Blog
Home  >  Documentation  >  Restrict Content  >  Restrict Content With a Shortcode

Restrict Content With a Shortcode

Paid Memberships Pro includes one shortcode for restricting access to content. Place these in any post or widget to show certain content to certain membership levels.

[membership level="1"]Will only show up for level 1 users.[/membership]

Create a free account or log in to gain access to downloads and documentation.

Free Sign UpLog In

Page navigation

← With the Membership Block
Using the pmpro_hasMembershipLevel() Function →

Restrict Content

  • For Pages
  • For Posts and Categories
  • With the Membership Block
  • Restrict Content With a Shortcode
  • Using the pmpro_hasMembershipLevel() Function
  • Hide Ads

Log In


Join Now | Lost Password?

Build a membership site—for free.

The fastest way to charge for access to your WordPress site. Our core plugin is free and includes more than other membership plugins. You deserve more.

Start for Free
Choose a Plan

We’re 100% GPL

Our plugin's code is not obfuscated, runs on as many sites as you want and can be customized to fit your project's needs. We just ask that you follow the GPLv2 guidelines by applying the GPLv2 license to any altered or unaltered version of PMPro that you distribute. License Details »

GPL v2

Recent Articles and Updates

  • What To Do With Your Membership Site When a Recession Looms
  • Add Custom HTML to the PMPro Login Form
    Add Custom HTML to the PMPro Login Form
  • Modifying Payment Subscriptions in PayPal

Platform

  • Pricing
  • Features
  • Reviews
  • Screenshots
  • Videos
  • Compatibility

Add Ons

  • Free
  • Standard
  • Plus
  • User
  • Integration
  • View All

Get Help

  • Support
  • Download & Install
  • Hosting
  • Developers
  • Blog
  • Contact Us

Company

  • About Us
  • Work With Us
  • Brand Assets
  • Affiliates
  • Privacy Policy
  • Terms of Service
Follow Us On

© 2022 Paid Memberships Pro. All Rights Reserved.