Title: Hide This
Author: Andrés Villarreal
Published: <strong>Ọ̀wàrà 13, 2013</strong>
Last modified: Èrèlé  12, 2018

---

Ṣàwárí àwọn plugin

![](https://ps.w.org/hide-this/assets/banner-772x250.png?rev=787307)

Plugin yìí **kò tíì ṣe àyẹ̀wò pẹ̀lú àwọn ìtújáde mẹ́ta pàtàkì tó kẹ́yìn ti WordPress**.
Ó lè jẹ́ pé a kò tọ́jú tàbí ṣe àtìlẹ́yìn fún un mọ́, ó sì lè ní àwọn ọ̀ràn ìbámu
nígbà tí a bá lò ó pẹ̀lú àwọn ẹ̀yà WordPress tuntun.

![](https://ps.w.org/hide-this/assets/icon-256x256.png?rev=1638288)

# Hide This

 Láti ọwọ́ [Andrés Villarreal](https://profiles.wordpress.org/andrezrv/)

[Ṣe ìgbàsílẹ̀](https://downloads.wordpress.org/plugin/hide-this.1.1.3.zip)

 * [Àwọn àlàyé](https://yor.wordpress.org/plugins/hide-this/#description)
 * [Àwọn àgbéyẹ̀wò](https://yor.wordpress.org/plugins/hide-this/#reviews)
 *  [Ìgbéwọlẹ̀](https://yor.wordpress.org/plugins/hide-this/#installation)
 * [Ìdàgbàsókè](https://yor.wordpress.org/plugins/hide-this/#developers)

 [Ìrànlọ́wọ́](https://wordpress.org/support/plugin/hide-this/)

## Àpèjúwe

**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Ìtumọ̀ Yorùbá:’
s say your logged in users or your clients? This plugin may be the solution you 
need.

ItÌtumọ̀ Yorùbá: ’s **very important** to note that the content wrapped within the
shortcode wonÌtumọ̀ Yorùbá: ’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](https://github.com/andrezrv/hide-this).

## Ìgbéwọlẹ̀

 1. Unzip `hide-this.zip` and upload the `hide-this` folder to your `/wp-content/plugins/`
    directory.
 2. Activate the plugin through the **“Plugins”** menu in WordPress.
 3. Start using the `[hide]` shortcode to hide the content you want.

## FAQ

  Installation Instructions

 1. Unzip `hide-this.zip` and upload the `hide-this` folder to your `/wp-content/plugins/`
    directory.
 2. Activate the plugin through the **“Plugins”** menu in WordPress.
 3. Start using the `[hide]` shortcode to hide the content you want.

## Àwọn àgbéyẹ̀wò

![](https://secure.gravatar.com/avatar/e9297ed890bbd6087cac469a94d7d17461e5b9b4497648c0bb85f87bcbf2d8bd?
s=60&d=retro&r=g)

### 󠀁[Perfect](https://wordpress.org/support/topic/perfect-7880/)󠁿

 [daron4ever](https://profiles.wordpress.org/daron4ever/) Bélú 24, 2020

MUST HAVE THIS plugin!

![](https://secure.gravatar.com/avatar/54c10fc9fe65a6ce4a00dcbf5df6ffd5530e610ac26905065609568d5ee7ea20?
s=60&d=retro&r=g)

### 󠀁[muy buen plugin](https://wordpress.org/support/topic/muy-buen-plugin-117/)󠁿

 [Jose](https://profiles.wordpress.org/kaboogy/) Ṣẹrẹ 6, 2020

Sencillo y funcional, estupendo

![](https://secure.gravatar.com/avatar/796d89359b1a5e17a4e35f8674f0489ee5d13f5ce992e23f98278b6ee0e1197c?
s=60&d=retro&r=g)

### 󠀁[Critical Component for WordPress](https://wordpress.org/support/topic/critical-component-for-wordpress/)󠁿

 [BroadRippleInc](https://profiles.wordpress.org/broadrippleunlimited/) Ọ̀wàrà 24,
2019

Please save this plugin or integrate it into WordPress.

![](https://secure.gravatar.com/avatar/055d9a46a29200d395d9c6de6389ba543b125cb143ec13acf64800a8c56f0de8?
s=60&d=retro&r=g)

### 󠀁[Simple and Powerful. ItÌtumọ̀ Yorùbá: ’ll probably exceed your expectations.](https://wordpress.org/support/topic/simple-and-powerful-itll-probably-exceed-your-expectations/)󠁿

 [reraymond](https://profiles.wordpress.org/reraymond/) Agẹmọ 29, 2019

IÌtumọ̀ Yorùbá: ’ve been using this for a couple of years, now on a number of sites.
And, it works fine in Wordpress 5. In fact, IÌtumọ̀ Yorùbá: ’m currently using it
on a site IÌtumọ̀ Yorùbá: ’m developing in Wordpress 5.2.2 using the OceanWP template
and Elementor page builder. At first, I used Hide This, but then switched to another
solution because I thought HT to be a bit limited for certain options. One specific
problem I was having with HT was trying to get the ! (not) operator to function 
as expected. I later came back to HT because I considered it to be “less bad” than
the other soution I had begun using. However, once I really got into HT (again) 
I discovered the “for all” (with exceptions) option. Now, I use the following syntax
for everything: [hide for=”all” exclude=(my list of exceptions, that is, the list
of roles I WANT to be able to view the content)]. Now, THAT is powerful yet extremely
flexible. This thing meets ALL my needs. DonÌtumọ̀ Yorùbá: ’t be afraid to give 
it a try…I think youÌtumọ̀ Yorùbá: ’ll be glad you did.

![](https://secure.gravatar.com/avatar/23c8383d5e75bd2594acfe681ababac15f88564e72fb40e03a4a2587a0c80b10?
s=60&d=retro&r=g)

### 󠀁[This plugin has saved me a lot of heartache](https://wordpress.org/support/topic/this-plugin-has-saved-me-a-lot-of-heartache/)󠁿

 [jcardona1331](https://profiles.wordpress.org/jcardona1331/) Òkúdù 16, 2019

Thank you! Such a simple and easy to use plugin. Works perfectly.

![](https://secure.gravatar.com/avatar/991ad4508632de77075421d50b5837692194ce0fdb5f5bd43c749d1b5ec3689e?
s=60&d=retro&r=g)

### 󠀁[Simple. Works. Life is good.](https://wordpress.org/support/topic/simple-works-life-is-good/)󠁿

 [fuchsr](https://profiles.wordpress.org/fuchsr/) Ẹrẹ́nà 23, 2019

Straightforward. If you ever need to hide some page contents, this is for you. I
use it often when I play with different ways of displaying information. No need 
to delete the original version, just hide it while working on new approaches.

 [ Ka gbogbo àwọn àgbéyẹ̀wò 49 ](https://wordpress.org/support/plugin/hide-this/reviews/)

## Àwọn Olùkópa & Olùgbéejáde

“Hide This” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí
plugin yìí.

Àwọn Olùkópa

 *   [ Andrés Villarreal ](https://profiles.wordpress.org/andrezrv/)

[Túmọ̀ “Hide This” sí èdè rẹ.](https://translate.wordpress.org/projects/wp-plugins/hide-this)

### Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

[Ṣàwárí koodu](https://plugins.trac.wordpress.org/browser/hide-this/), ṣàyẹ̀wò [ibi ìpamọ́ SVN](https://plugins.svn.wordpress.org/hide-this/),
tàbí ṣe àgbékalẹ̀ sí [àkọsílẹ̀ ìdàgbàsókè](https://plugins.trac.wordpress.org/log/hide-this/)
nípasẹ̀ [RSS](https://plugins.trac.wordpress.org/log/hide-this/?limit=100&mode=stop_on_copy&format=rss).

## Àkọsílẹ̀ àwọn àyípadà

#### 1.1.3

 * Fix: A bug was causing contents always showing for all users when applying negations
   to roles.

#### 1.1.2

 * Fix: Multiple role assignation wasnÌtumọ̀ Yorùbá: ’t working in some scenarios.

#### 1.1.1

 * Improvement: Parsing shortcodes into `[hide]` and `[hidethis]`.

#### 1.1

 * Object oriented code.
 * New filter hooks.

#### 1.0

First release!

## Àkójọpọ̀ Meta

 *  Ẹ̀yà **1.1.3**
 *  Ìgbàgbọ́hùn tó kẹ́yìn **ọdún 8 sẹ́yìn**
 *  Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ **2,000+**
 *  Ẹ̀yà WordPress ** 3.0 tàbí ju bẹ́ẹ̀ lọ **
 *  Dánwò dé **4.9.29**
 *  Èdè
 * [English (US)](https://wordpress.org/plugins/hide-this/)
 * Àwọn àmì
 * [capability](https://yor.wordpress.org/plugins/tags/capability/)[content](https://yor.wordpress.org/plugins/tags/content/)
   [hide](https://yor.wordpress.org/plugins/tags/hide/)[role](https://yor.wordpress.org/plugins/tags/role/)
   [user](https://yor.wordpress.org/plugins/tags/user/)
 *  [Ìwòye Tó Péye](https://yor.wordpress.org/plugins/hide-this/advanced/)

## Àwọn ìbò

 5 lára àwọn ìràwọ̀ 5.

 *  [  49 5-star reviews     ](https://wordpress.org/support/plugin/hide-this/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/hide-this/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/hide-this/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/hide-this/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/hide-this/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/hide-this/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/hide-this/reviews/)

## Àwọn Olùkópa

 *   [ Andrés Villarreal ](https://profiles.wordpress.org/andrezrv/)

## Ìrànlọ́wọ́

Nǹkan wà tí o fẹ́ sọ? Ṣé o nílò ìrànlọ́wọ́?

 [Wo àpéjọ ìrànlọ́wọ́](https://wordpress.org/support/plugin/hide-this/)

## Ṣe ìtọrẹ

Ṣé o fẹ́ ṣe àtìlẹ́yìn fún ìlọsíwájú plugin yìí?

 [ Ṣe ìtọrẹ sí plugin yìí ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=B7XQG5ZA36UZ4)