Title: Hide Content by User Role for WPBakery
Author: wpTerra
Published: <strong>2019 年 11 月 26 日</strong>
Last modified: 2025 年 3 月 28 日

---

搜索插件

![](https://ps.w.org/hide-content-by-role-for-wpbakery/assets/banner-772x250.png?
rev=2202631)

![](https://ps.w.org/hide-content-by-role-for-wpbakery/assets/icon-256x256.png?rev
=2202559)

# Hide Content by User Role for WPBakery

 作者：[wpTerra](https://profiles.wordpress.org/wpterra/)

[下载](https://downloads.wordpress.org/plugin/hide-content-by-role-for-wpbakery.1.2.3.zip)

 * [详情](https://cn.wordpress.org/plugins/hide-content-by-role-for-wpbakery/#description)
 * [评价](https://cn.wordpress.org/plugins/hide-content-by-role-for-wpbakery/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/hide-content-by-role-for-wpbakery/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/hide-content-by-role-for-wpbakery/#developers)

 [支持](https://wordpress.org/support/plugin/hide-content-by-role-for-wpbakery/)

## 描述

This plugin adds settings to all elements in WPBakery page builder to hide/show 
the content elements on your website based on user roles. This way you can easily
restrict content in WPBakery pages and posts.

For example you can hide a specific column element on your page or post for all 
users but editors or only show it to logged-out users.

By default (with no checkboxes checked) the content will be visible for all users.

The hidden content will also be removed from the HTML.

#### Features

 * can hide content in the frontend for specific user roles and logged out users
 * works with all WPBakery elements
 * removes hidden content from HTML Code
 * also works with added custom roles
 * no hidden costs, completely free plugin

### Issues with specific Themes / Plugin versions

There are alot of themes that are using modified versions of WPBakery Page Builder.
Some may not work together well with this plugin.

#### Uncode Theme

The Uncode WPBakery version did not show the tab Visible for roles at all. We fixed
this by changing the hook when to add the our tab.

#### Salient Theme

The Salient Theme transforms checkboxes to switches and removes the labels. We fixed
that in 1.2.1 and put the labels back there.

## 屏幕截图

 * [[
 * Hide or show rows and columns with these settings in WPBakery
 * [[
 * Fixed display of checkbox (which are converted to switches) labels in Salient
   Theme
 * [[
 * Fixed tab in Uncode Theme

## 安装

 1. Upload the zip to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Set the roles for which to hide the content in the WPBakery rows or columns settings

## 常见问题

### What about feature X

Just go to the support forums and kindly ask for it, then we´ll see what we can 
do. Thank you!

## 评价

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

### 󠀁[Little GREAT plugin!](https://wordpress.org/support/topic/little-great-plugin/)󠁿

 [cfrom](https://profiles.wordpress.org/cfrom/) 2024 年 8 月 8 日

Very usefull!

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

### 󠀁[Awesome Plugin](https://wordpress.org/support/topic/awesome-plugin-6560/)󠁿

 [James Smith](https://profiles.wordpress.org/jmpippin/) 2022 年 8 月 22 日

This adds great functionality for themes that use WPBakery. I hope this plugin continues
to be supported.

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

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

 [wwwireforks](https://profiles.wordpress.org/wwwireforks/) 2022 年 8 月 18 日

This is one of those plugins that does exactly what you want it to, exactly as described.
Thank you so much!

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

### 󠀁[Fantástico](https://wordpress.org/support/topic/fantastico-297/)󠁿

 [Marcelo Roberto](https://profiles.wordpress.org/markclarke/) 2022 年 7 月 6 日

Eu havia comprado um outro plugin para a mesma finalidade e mesmo assim não supriu
minhas necessidades como este. Parabéns aos desenvolvedores!

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

### 󠀁[Excelente y funcional 100% al día de hoy.](https://wordpress.org/support/topic/excelente-y-funcional-100-al-dia-de-hoy/)󠁿

 [raffaellabec](https://profiles.wordpress.org/raffaellabec/) 2022 年 4 月 8 日

Es exactamente lo que necesitaba. Gracias! 🙂

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

### 󠀁[Great plugin!](https://wordpress.org/support/topic/great-plugin-33408/)󠁿

 [lunarmimi](https://profiles.wordpress.org/lunarmimi/) 2022 年 2 月 12 日

Superb!! I love this plugin so much. Thank you for creating this. It’s my life saver.

 [ 阅读所有16条评价 ](https://wordpress.org/support/plugin/hide-content-by-role-for-wpbakery/reviews/)

## 贡献者及开发者

「Hide Content by User Role for WPBakery」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ wpTerra ](https://profiles.wordpress.org/wpterra/)
 *   [ Ben ](https://profiles.wordpress.org/wpterrade/)
 *   [ Andreas Münch ](https://profiles.wordpress.org/andreasmuench/)

「Hide Content by User Role for WPBakery」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/hide-content-by-role-for-wpbakery/contributors)
为本插件所做的贡献。

[帮助将「Hide Content by User Role for WPBakery」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/hide-content-by-role-for-wpbakery)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/hide-content-by-role-for-wpbakery/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/hide-content-by-role-for-wpbakery/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/hide-content-by-role-for-wpbakery/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/hide-content-by-role-for-wpbakery/)。

## 更新日志

#### 1.2.3

 * remove duplicate action hook

#### 1.2.2

 * fix tab in Uncode Theme

#### 1.2.1

 * fix issue with Impreza Theme not accepting 4 parameters for the hook ‘vc_shortcode_output’
 * fix display of checkbox labels in Salient Theme

#### 1.2

 * add settings to all WBBakery elements

#### 1.1

 * add option to show content only for guests (not logged in users)

#### 1.0.1

 * add setting description
 * add assets

#### 1.0.0

 * Initial release

## 额外信息

 *  版本 **1.2.3**
 *  最后更新：**1 年前**
 *  活跃安装数量 **1,000+**
 *  WordPress 版本 ** 4.7.0 或更高版本 **
 *  已测试的最高版本为 **6.7.5**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/hide-content-by-role-for-wpbakery/)
   和 [Swedish](https://sv.wordpress.org/plugins/hide-content-by-role-for-wpbakery/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/hide-content-by-role-for-wpbakery)
 * 标签
 * [hide](https://cn.wordpress.org/plugins/tags/hide/)[page](https://cn.wordpress.org/plugins/tags/page/)
   [post](https://cn.wordpress.org/plugins/tags/post/)[show](https://cn.wordpress.org/plugins/tags/show/)
   [WPBakery](https://cn.wordpress.org/plugins/tags/wpbakery/)
 *  [高级视图](https://cn.wordpress.org/plugins/hide-content-by-role-for-wpbakery/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  16 条 5 星评价     ](https://wordpress.org/support/plugin/hide-content-by-role-for-wpbakery/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/hide-content-by-role-for-wpbakery/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/hide-content-by-role-for-wpbakery/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/hide-content-by-role-for-wpbakery/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/hide-content-by-role-for-wpbakery/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/hide-content-by-role-for-wpbakery/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/hide-content-by-role-for-wpbakery/reviews/)

## 贡献者

 *   [ wpTerra ](https://profiles.wordpress.org/wpterra/)
 *   [ Ben ](https://profiles.wordpress.org/wpterrade/)
 *   [ Andreas Münch ](https://profiles.wordpress.org/andreasmuench/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/hide-content-by-role-for-wpbakery/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://wpterra.com)