该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Hide Content by User 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!

评价

2022 年 8 月 22 日
This adds great functionality for themes that use WPBakery. I hope this plugin continues to be supported.
2022 年 8 月 18 日
This is one of those plugins that does exactly what you want it to, exactly as described. Thank you so much!
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!
2022 年 2 月 12 日
Superb!! I love this plugin so much. Thank you for creating this. It’s my life saver.
阅读所有16条评价

贡献者及开发者

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

贡献者

「Hide Content by User Role for WPBakery」插件已被翻译至 1 种本地化语言。 感谢所有译者为本插件所做的贡献。

将“Hide Content by User Role for WPBakery”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

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