
內容簡介
這個外掛為 WPBakery 頁面編輯器中的所有元素添加設置,以根據用戶角色來隱藏/顯示網站上的內容元素,這樣您就可以在 WPBakery 的頁面和文章中輕鬆限制內容。
例如,您可以隱藏特定的欄位元素,讓所有用戶看不到,只有編輯者可以看到,或者僅對未登錄的用戶顯示。
默認情況下(未勾選任何覆選框),內容將對所有用戶可見。
隱藏的內容也將從 HTML 中刪除。
特點
可以對特定用戶角色和未登錄的用戶在前端隱藏內容
適用於所有 WPBakery 元素
從 HTML 代碼中刪除隱藏的內容
也適用於添加的自定義角色
沒有隱藏費用,完全免費的外掛
特定主題/插件版本的問題
有很多主題正在使用修改後的 WPBakery Page Builder 版本。有些可能與這個外掛不太配合。
Uncode 主題
Uncode WPBakery 版本根本不顯示角色為 Visible 的選項卡。通過更改添加選項卡的鉤子,我們解決了這個問題。
Salient 主題
Salient 主題將覆選框轉換為開關,並刪除標籤。我們在 1.2.1 版中解決了這個問題,將標籤再次放回去。
外掛標籤
開發者團隊
② 後台搜尋「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.
