The WPFolks app is out on iPhone and Android. Free, no ads. Download on the App Store Get it on Google Play
Skip to main content
Login Join
Active installs
2k+
49 ratings
5.0
Last updated
9 years ago
Version
1.1.3
Tested up to
WP 4.9.36

About this plugin

Hide This provides a [hide] shortcode that lets you hide some parts of the content from your posts and pages. You can easily manage inclusions and exclusions for hidden content in three levels: absolute, groups and capabilities, and specific user.

Maybe some part of your post should not be published yet? Or maybe you want to show some specific parts of your content to a certain group or users, let’s say your logged in users or your clients? This plugin may be the solution you need.

It’s very important to note that the content wrapped within the shortcode won’t even be printed as HTML. It will be really, really hidden. There are a lot of great plugins that hide the content via CSS and Javascript, but this is not the case. If you want your content to not be visible, but still printed as HTML, you should try one of those.

Basic usage:

[hide]Lorem ipsum dolor sit amet.[/hide]

This example will hide that content for all the site visitors. But you can be more specific by using attributes.

Accepted attributes:

  • for: (optional) your rules to hide content. You can use absolute rules (all, none, [!]logged), rules by roles and capabilities ([!]{role}, [!]{role}:[!]{capability}, :[!]{capability}), and rules by specific user (userid:[!]{ID}, useremail:[!]{email}, username:[!]{username}).
  • exclude: (optional) your rules to show the hidden content to some specific visitor/s. As in for, you can use absolute rules (all, none, [!]logged), rules by roles and capabilities ([!]{role}, [!]{role}:[!]{capability}, :[!]{capability}), and rules by specific user (userid:[!]{ID}, useremail:[!]{email}, username:[!]{username}).
  • test: (optional) for debugging purposes. The kind of output you expect. Accepts content and empty. Use it wisely, because it prints a message with the result of the test.

Some useful examples:

Hide your content to all visitors:

[hide]Lorem ipsum dolor sit amet.[/hide]

Hide your content to all visitors, except for a specific user:

[hide for="all" exclude="username:foo"]Lorem ipsum dolor sit amet.[/hide]

Hide your content to all non-logged visitors:

[hide for="!logged"]Lorem ipsum dolor sit amet.[/hide]

Hide your content to all logged in visitors:

[hide for="logged"]Lorem ipsum dolor sit amet.[/hide]

Hide your content to all logged in visitors, except for a specific user:

[hide for="logged" exclude="username:foo"]Lorem ipsum dolor sit amet.[/hide]

Hide your content for some specific role:

[hide for="contributor"]Lorem ipsum dolor sit amet.[/hide]

Hide your content for two specific roles:

[hide for="editor, contributor"]Lorem ipsum dolor sit amet.[/hide]

Hide your content for all visitors except for a specific role:

[hide for="!administrator"]Lorem ipsum dolor sit amet.[/hide]
[hide for="all" exclude="administrator"]Lorem ipsum dolor sit amet.[/hide]

Hide your content for all visitors except for two specific roles:

[hide for="!administrator, !editor"]Lorem ipsum dolor sit amet.[/hide]
[hide for="all" exclude="administrator, editor"]Lorem ipsum dolor sit amet.[/hide]

Hide your content for users with a specific role and a specific capability:

[hide for="some_role:do_a_barrel_roll"]Lorem ipsum dolor sit amet.[/hide]

Hide your content for users with a specific role, not having a specific capability:

[hide for="some_role:!do_a_barrel_roll"]Lorem ipsum dolor sit amet.[/hide]

Hide your content for users with a specific capability:

[hide for=":do_a_barrel_roll"]Lorem ipsum dolor sit amet.[/hide]

Hide your content for a specific user by user name:

[hide for="username:foo"]Lorem ipsum dolor sit amet.[/hide]

Hide your content for a specific user by user ID:

[hide for="userid:42"]Lorem ipsum dolor sit amet.[/hide]

Hide your content for a specific user by user email:

[hide for="useremail:foo@mail.com"]Lorem ipsum dolor sit amet.[/hide]

Hide your content for everyone except for a specific user by user name:

[hide for="username:!foo"]Lorem ipsum dolor sit amet.[/hide]

You should get the idea by now. Notice how you can use ! to deny values such as login status, roles, capabilities and user values.

Extending

This plugin offers hooks for filters, so you can modify its functionality or add your own.

  • hide_this_attributes: Modify the attributes that the shortcode receives.
  • hide_this_content: Modify the full content that the shortcode prints.
  • hide_this_hide_rules: Modify rules for hiding content.
  • hide_this_show_rules: Modify rules for showing content.

Contribute

You can make suggestions and submit your own modifications to this plugin on Github.

Analytics

Live from WordPress.org, refreshed daily. Last refresh Dec 4, 2026.

Top 5,000 on WordPress.org Plugin rankings
  • Downloads on a typical day are up 40% on the month before.
  • Passes 2 of 4 health checks below.
2/4

Health checks

What a careful site owner looks at before installing.

  • Actively maintained Last release 9 years ago
  • Tested with current WordPress Tested up to 4.9.36, 22 releases behind
  • Support questions answered Nothing open in the last two months
  • Well rated 5.0 stars from 49 ratings
Active installs
2,000+ WordPress.org rounds this down
This week
134 downloads +18% vs the week before
Last 30 days
449 downloads +40% on a typical day
All time
51k downloads On WordPress.org since 2013
Downloads per week Every update counts as a download on WordPress.org, so release weeks spike.
Latest week
134
Typical week
29
Peak
134 Week of Nov 27
View as table
WeekDownloads
Week of Nov 27134
Week of Nov 20114
Week of Nov 1391
Week of Nov 692
Week of Oct 3090
Week of Oct 2382
Week of Oct 1664
Week of Oct 956
Week of Oct 257
Week of Sep 2549
Week of Sep 1848
Week of Sep 1150
Week of Sep 442
Week of Aug 2841
Week of Aug 2143
Week of Aug 1443
Week of Aug 751
Week of Jul 3133
Week of Jul 2437
Week of Jul 1721
Week of Jul 1024
Week of Jul 313
Week of Jun 2621
Week of Jun 1927
Week of Jun 1230
Week of Jun 531
Week of May 2932
Week of May 2226
Week of May 1523
Week of May 819
Week of May 120
Week of Apr 2433
Week of Apr 1731
Week of Apr 1027
Week of Apr 324
Week of Mar 2723
Week of Mar 2030
Week of Mar 1328
Week of Mar 624
Week of Feb 2721
Week of Feb 2027
Week of Feb 1315
Week of Feb 637
Week of Jan 3018
Week of Jan 2320
Week of Jan 1620
Week of Jan 919
Week of Jan 217
Week of Dec 26, 202516
Week of Dec 19, 202514
Week of Dec 12, 202520
Week of Dec 5, 202519
Where it stands Rank among the plugins WPFolks tracks every day.
Active installs over time Recorded by WPFolks every day since Oct 14, 2026.

Reviews

5.0 49 ratings on WordPress.org
  • 5 49
  • 4 0
  • 3 0
  • 2 0
  • 1 0

From folks on WPFolks

No reviews from folks yet. Used it? Be the first to say how it went.

Log in to leave a review

Latest on WordPress.org

Proudly supported by