Hide This
This plugin provides a shortcode that lets you hide some parts of the content from your posts and pages.
The facts
- Rating
- 5★ from 49
- Active installs
- 2k+
- Price
- Free
- Last updated
- 12 Feb 2018
- Added
- Oct 2013
- Requires WP
- 3.0
- Tested up to
- WP 4.9.31
- Downloads
- 49,809
Our analysis
AI-assistedHide This is a WordPress plugin that allows you to hide specific parts of your posts and pages using a shortcode. You can manage visibility based on user roles, capabilities, or specific users, ensuring that certain content remains completely hidden from view, even in the HTML source.
This plugin is suitable for users who need to control content visibility on their site, such as those wanting to restrict access to certain information for logged-in users or specific groups. It offers a straightforward way to implement content restrictions without relying on CSS or JavaScript.
Best for: This plugin suits WordPress site owners who need to restrict content visibility for specific users or groups.
What it does well
- ✓Provides a shortcode for hiding content
- ✓Allows visibility management by user roles and capabilities
- ✓Content is completely hidden from HTML output
- ✓Easy to use with basic and advanced options
Where it falls short
- •Limited information on compatibility with newer WordPress versions
- •Last updated in February 2018
Verdict
Hide This offers a practical solution for managing content visibility on WordPress sites, though its lack of recent updates may be a concern for some users.
From the developer
Andrés Villarreal's own description of Hide This, lightly tidied.
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
contentandempty. 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: