WordPress plugin intelligence profile

Hide This

This plugin provides a shortcode that lets you hide some parts of the content from your posts and pages.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 4.9
Current version1.1.3
WordPress coverageTested up to WordPress 4.9
Minimum stackWP 3.0 · PHP —
Directory statusactive
Last directory update12 Feb 20188y ago
Active installations2K+Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 49 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Hide This version 1.1.3 as active, updated 8y ago and tested up to WordPress 4.9.

Overview

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]

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]

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

[/hide]

Hide your content to all non-logged visitors:

[/hide]

Hide your content to all logged in visitors:

[/hide]

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

[/hide]

Hide your content for some specific role:

[/hide]

Hide your content for two specific roles:

[/hide]

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

[/hide]

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

[/hide]

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

[/hide]

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

[/hide]

Hide your content for users with a specific capability:

[/hide]

Hide your content for a specific user by user name:

[/hide]

Hide your content for a specific user by user ID:

[/hide]

Hide your content for a specific user by user email:

[/hide]

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

[/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.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • capability
  • content
  • hide
  • role
  • user
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 4.9

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 4.9.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to4.9
Minimum requirementsWordPress 3.0 · PHP not listed
Update activity12 Feb 20188y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.