WORDPRESS

How to Use the Content Control Plugin in WordPress to Restrict Content

Safikul Islam
By Safikul Islam Published Nov 21, 2025 · Updated Oct 21, 2026 · 4 min read · 2 comments
How to Use the Content Control Plugin in WordPress to Restrict Content

Quick answer: Content Control is a free WordPress plugin that lets you show or hide posts, pages, categories, blocks and widgets based on whether a visitor is logged in and which role they have. Install it, create a restriction that says who can see what, choose a message or redirect for everyone else, then test as a logged-out visitor. It does not lock the files in your media library: a direct link to a PDF or image can still open for anyone who has the URL.

Last reviewed October 21, 2026, against the plugin’s WordPress.org page (version 2.7.4).

I rewrote this guide because the earlier version said the plugin protects PDF downloads. Its own FAQ says it does not restrict media files at the file-server level, so that claim was wrong and could have exposed files you thought were private.

What Content Control can restrict

According to the plugin page on WordPress.org, it can restrict:

  • Pages and posts, including custom post types
  • Categories, tags and custom taxonomies
  • Individual blocks in the block editor, and widgets
  • Media attachment pages (but not the files themselves)
  • Parts of a post, using the [content_control] shortcode

You can decide access by login status, user role, or device type for blocks, and you can show a custom message or send blocked visitors to another page.

What it does not do

  • It does not protect uploaded files. The plugin’s FAQ says restricting specific media files is a file-server problem outside its scope. If you need private downloads, see my guide on preventing direct access to WordPress files.
  • The free version is not a paid membership system. According to the plugin page, paid memberships need the Pro version paired with a tool such as WooCommerce, Easy Digital Downloads or Paid Memberships Pro.

How to install it

  1. In your dashboard, go to Plugins → Add New.
  2. Search for Content Control and look for the one by Code Atlantic.
  3. Click Install Now, then Activate.

How to create a restriction

The menu labels can change between plugin versions, so follow the logic rather than the exact wording:

  1. Open the Content Control settings from the dashboard menu and add a new restriction.
  2. Choose what to protect: for example one page, or every post in a category.
  3. Choose who can see it: logged-in users only, or specific roles.
  4. Choose what everyone else sees: a custom message, or a redirect to your login or sign-up page.
  5. Save the restriction.

Restricting only part of a post

To hide one section, either use the plugin’s block controls in the editor or wrap the text in the [content_control] shortcode. See the plugin’s documentation for the exact shortcode options. A teaser paragraph above the locked section gives visitors a reason to sign up.

Test before you rely on it

  • Open the page in a private browser window as a logged-out visitor.
  • Log in with a test account for each role you allowed and each role you did not.
  • If content is still visible, clear your caching plugin and your host’s cache, since cached pages can ignore the rule.
  • Paste the direct URL of any file you consider private into a private window to confirm whether it opens.

What it means for SEO

Search engines cannot log in, so they only see what a logged-out visitor sees. Version 2.6.0 added a setting that controls whether restricted content can appear in search results, and showing it is off by default. If you restrict too much, you give Google less to rank, so keep your useful free content public and lock only what is truly premium.

FAQs

Does Content Control protect PDFs?

No. It can hide a page that links to a PDF, but anyone with the direct file URL may still open the file. Use server-level rules or a protected download script for private files.

Can I use it to build a paid membership site?

The free plugin controls who sees what. For payments, the plugin page says you need Pro with a supported commerce or membership tool. Check the current requirements before you build.

Do I need to code?

Not for basic rules. The editor and settings screens cover most uses, and shortcodes are optional.

Sources

2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *