[WordPress] 外掛分享: Restricted Blocks – Conditional Visibility Settings for the Block Editor

WordPress 外掛 Restricted Blocks – Conditional Visibility Settings for the Block Editor 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Restricted Blocks – Conditional Visibility Settings for the Block Editor」是 2021-08-31 上架。
  • 目前有 100 個安裝啟用數。
  • 上一次更新是 2025-01-05,距離現在已有 120 天。
  • 外掛最低要求 WordPress 5.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

daext |

外掛標籤

visibility | hide content | dynamic content | conditional blocks | conditional content |

內容簡介

Restricted Blocks 是一款 WordPress 外掛,可根據各種條件限制存取特定的 Gutenberg 區塊。

例如,您可以基於使用者角色限制內容,基於使用者設備有條件地顯示內容,使文章的某些部分對搜尋引擎不可用等等。

專業版

針對專業使用者,我們提供此外掛的 專業版,其包含額外的限制類型。

限制類型

本節將提供您限制類型的詳細資訊和相關的使用範例。

Fixed

啟用此限制時,會將某個區塊從前端移除。

使用範例

暫時隱藏文章中現有或新的節段,直到它們準備好發佈。

Password

僅在成功提交密碼後,才會顯示限制的內容。

使用範例

僅向俱樂部成員、社群成員或您的好友顯示私人內容。
僅向某班級的學生顯示可下載材料。

設備

此限制可讓您基於使用者設備顯示區塊。

使用範例

僅在桌面設備上顯示複雜的版面配置元素。
基於使用者設備,顯示不同的下載連結。

時間範圍

使用此限制,您可以在指定的時間間隔內顯示內容。

使用範例

在預定的時間間隔內出售門票。
建立閃銷。

權限

使用此限制,可根據使用者的權限決定是否顯示特定區塊。

使用範例

僅向特定使用者層級提供高級內容。

IP 位址

此限制可讓您基於訪客的 IP 位址顯示或隱藏區塊。

使用範例

防止聯絡表單或評論區的垃圾郵件。
防止駭客攻擊。

Cookies

使用此限制,可根據特定的 Cookies 顯示內容。

使用範例

基於關於使用者的可用資訊,隱藏或顯示介面元素。
僅向註冊使用者顯示內容。

HTTP 標頭

使用此限制,可根據 HTTP 標頭中可用的資訊顯示或隱藏內容。

使用範例

隱藏特定機器人或搜尋引擎的內容。
根據使用者設備有條件地顯示內容。

可自訂樣式

您可以使用後端提供的 18 種樣式選項來自訂前端顯示元素的色彩和字型。

技術資訊
外掛手冊

有關外掛安裝和使用的更多資訊,請參閱外掛手冊。

設備偵測

使用 Mobile Detect PHP 類別來偵測使用者設備。

鳴謝

此外掛使用以下資源:

原文外掛簡介

Restricted Blocks is a WordPress plugin that allows you to restrict access to specific Gutenberg blocks based on a great variety of conditions.
You can, for example, restrict content based on the user role, conditionally display content based on the user device, make parts of the post unavailable to search engines, and more.
Pro Version
For professional users, we distribute a Pro Version of this plugin which includes additional types of restrictions.
Types of restrictions
This section will provide you details on the types of restrictions and the related usage examples.
Fixed
This restriction, when activated, removes a block from the front end.
Usage Examples

Temporarily hide existing or new sections of an article until they are ready to be published.

Password
The restricted content is displayed only after a successful password submission.
Usage Examples

Display private content only to members of a club, community, or to your friends.
Display downloadable material only to students of a class.

Device
This restriction allows you to display blocks based on the device of the user.
Usage Examples

Display complex layout elements only with desktop devices
Display different download links based on the device of the user

Time Range
With this restriction, you can display content at a specified time interval.
Usage Examples

Sell tickets in predetermined time intervals
Create a flash sale

Capability
This restriction uses the capabilities of the user to determine whether to display or not a specific block.
Usage Examples

Allow access to premium material only to specific user roles.

IP Address
This restriction allows you to display or hide blocks based on the IP address of the visitor.
Usage Examples

Prevent spam on contact forms or comments area
Prevent hacking attempts

Cookie
Use this restriction to display content based on the presence of specifics cookies.
Usage Examples

Hide or display interface elements based on the information available about the user
Display content only to logged user

HTTP Headers
With this restriction, you can display or hide content based on the information available in the HTTP headers.
Usage Examples

Hide content to specific bot or search engines
Conditionally display content based on the device of the user

Customizable Style
You can customize the colors and the typography of the elements displayed in the front-end with the 18 style options available in the back-end.
Technical Information
Plugin manual
Please see the plugin manual for more information on the plugin installation and usage.
Device detection
The device of the user is detected with the Mobile Detect PHP class.
Credits
This plugin makes use of the following resources:

Select2 licensed under the MIT License
Mobile Detect licensed under the MIT License

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Restricted Blocks – Conditional Visibility Settings for the Block Editor」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.10 | 1.11 | 1.12 | 1.13 | trunk |

延伸相關外掛(你可能也想知道)

  • Block Visibility — Conditional Visibility Control for the Block Editor 》借助 Block Visibility 外掛,在 WordPress 中輕鬆創建動態內容,以提高轉換率,增強用戶體驗並改進工作流程。, 這個無需程式碼的解決方案,讓您可以控制網站...。
  • Optional Content 》這個外掛讓你可以藉由簡單的短代碼來顯示或隱藏頁面或文章內容。你不需要 PHP 知識或啟用 PHP 外掛。只需要在所見即所得編輯器中使用一個按鈕,選擇在什麼情...。
  • NEEED – Dynamic Websites 》對於 NEEED,就像任何好的銷售策略一樣,一開始就需要專注於引起注意。因為你並不是唯一的供應商。然後你的工作就是喚起和提高興趣。只有當你的潛在客戶表明...。
  • Fast Beaver Control 》Fast BeaverControl為您提供了強大的功能,可以基於URL字符串、用戶標籤或產品購買來顯示或隱藏任何Beaver Builder頁面內容。, 使用Fast Flow Dashboard和任...。
  • Conditional Content 》您正在尋找一種在 WordPress 網站的頁面/文章中添加黏性內容的工具嗎?, 試試免費的 Conditional Content 外掛程式-它將幫助您插入和控制條件內容,並設置您...。
  • WP Contents Dynamic Display 》Dynamic Contents WordPress 外掛是設計用於透過多個條件的簡碼 (shortcode) 將動態內容固定在網站的任何部分。根據頁面、頁面模板、文章或文章分類,選擇顯...。
  • Fast BlockControl 》Fast BlockControl旨在與Fast Flow標記系統完美配合。 Fast Flow Dashboard, 您可以根據用戶的Fast Tag顯示或隱藏任何區塊。, 多個Fast Tag可以結合在一起,...。
  • Conditional Content by Crowd Favorite 》Custom personalization matters! Conditional Content is designed to integrate seamlessly with your editing experience! Personalize your website to d...。
  • Conditional Content Block 》```html, , , , , WordPress 外掛介紹, , , , ...。
  • Trident 》提供任何文章類型(文章、頁面、自訂文章等)的簡單內容保護設定。內容保護條件包括使用者狀態和 WooCommerce 產品擁有權(需要啟用 WooCommerce)。, 功能, ...。
  • Personalized Shortcodes Pro 》這個外掛程式讓使用者可以在內容中透過短代碼加入來自訪客的各種資料。以下是一些使用案例:, , 紐約的醫生們都喜愛這個裝置(紐約會被使用者的城市替換), ...。
  • Block Conditions – Hide WordPress block for various conditions 》區塊條件提供您多種條件來顯示/隱藏您的區塊。例如在特定國家隱藏、針對已登入或登出的使用者、針對特定裝置如手機、桌面或平板電腦,它為您提供了一個驚人的...。

文章
Filter
Apply Filters
Mastodon