Hide This

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"]

Hide your content for a specific user by user ID:

[hide for="userid:42"]

Hide your content for a specific user by user email:

[hide for="useremail:foo@mail.com"]

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

[hide for="username:!foo"]

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

WordPress Access Areas

WP Access Areas lets you fine-tune who may read, edit or comment on your Blog posts. You can either restrict access to logged-in uses only, certain WordPress-Roles or even custom Access Areas....

Similar: 43%

Moderator Role

Just install the plugin, activate it: You can now change a user's role to "Moderator", he can now moderate comments (all or only his), and only do this!...

Similar: 38%

Controlled Admin Access

Give a temporarily limited admin. access to themes designers, plugins developers and support agents. The plugin is simple and clean, it helps the administrator to create a user with a temporary access and choose which pages in your admin area which you don't want the user to access. send the detail.........

Similar: 30%

Restrict Page Parents

Restrict Page Parents is a lightweight plugin to enhance the user permissions features of WordPress. It changes the option to set a page parent to only show pages owned by the current user. It can also be configured to force users to select a parent page before they're able to publish or save. Rest.........

Similar: 28%

Separate Media

Separate user's media by user or role. Compatible with User Role Editor. Separate media by: User Users see their files and no one elses. Role: Union Users must share at least one role to see each others uploads. Role: Loose Intersect Users must share at least all of the current user's roles. .........

Similar: 28%

User Upgrade Capability

'User Upgrade Capability' is a plugin to help with a multi-site network and helps with the administration of users and their roles. When you start using a multi-site WordPress installation you soon realise the power of having the ability to use a separate site for different functions (e.g. main site.........

Similar: 28%

Advanced Access Manager

Advanced Access Manager (aka AAM) is known to be one of the very best
access control security enhancement tools available for WordPress. A very powerful yet easy-to-use plugin, AAM gives you flexible and customizable control over your single blog or multisite network. With AAM, you can control acc.........

Similar: 28%

Restricted Page

"Restricted Page" plugin was created to prevent unauthorized users from viewing particular pages. The plugin must be placed on the destination page. For logged-in users the plugin can show (in addition to the content of the page) predefined text and “Log out” button. For not logged in users plugin .........

Similar: 25%

mmbrs

The mmbrs plugin allows you to restrict content access using shortcodes. Content may be restricted based on role, capability, user meta, and logged-in status....

Similar: 18%

iCeyi Members Only

iCeyi Members Only WordPress Plugin makes it easy for anyone to protect content on a WordPress site in any post or page using shortcodes. [membersonly] Pretected Content Here [/membersonly] The shortcode can be used along with other shortcodes, this plugin is very simple and light weight making i.........

Similar: 12%