[WordPress] 外掛分享: Block Logic – Full Gutenberg Block Display Control

WordPress 外掛 Block Logic – Full Gutenberg Block Display Control 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Block Logic – Full Gutenberg Block Display Control」是 2020-01-14 上架。
  • 目前有 400 個安裝啟用數。
  • 上一次更新是 2023-09-24,距離現在已有 588 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 5.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
  • 有 13 人給過評分。
  • 論壇上目前有 1 個提問,問題解答率 0%

外掛協作開發者

landwire |

外掛標籤

block | conditions | visibility | conditional | conditional logic |

內容簡介

Block Logic 外掛在區塊編輯器(即 Gutenberg)的「進階」區段中添加了一個名為「Block Logic」的欄位,讓您可以根據條件顯示或隱藏任何區塊。您可以使用 WordPress 的條件標籤或任何一般的 PHP 代碼。

根據以下條件顯示或隱藏區塊

使用者角色
使用者登入狀態
文章狀態
日期和時間
自訂 PHP 函數的結果

功能

使用條件顯示或隱藏任何區塊
使用「AND」或「OR」運算子組合條件。請參閱 FAQ 中的撰寫邏輯代碼
完全彈性:使用任何您想要的條件

設定

只需啟用外掛,「Block Logic」文字方塊就會出現在 Gutenberg 編輯器的「進階」區段中。

原文外掛簡介

Block Logic adds a “Block Logic” field to the “Advanced” section of the block editor (i.e Gutenberg), that lets you show or hide any block based on conditions. You can use WordPress’ Conditional Tags or any general PHP code.
Show or hide blocks based on

User role
User login status
Post status
Date and time
The result of a custom PHP function

Features

Show or hide any block using conditions
Combine conditions with “and” or “or” operators. See FAQ Writing Logic Code
Full flexibility: use any condition you want

Limitations
Does not work with the Classic Block, Widget Block or Widget Area Block [‘core/freeform’, ‘core/legacy-widget’, ‘core/widget-area’], as the those blocks do not support block attributes. Does also not work with the HTML Block [‘core/html’] inside the Widget Screen, as this one also does not support block attributes there.
Configuration
Just activate the plugin. The “Block Logic” textbox will then appear in the “Advanced” section of the Gutenberg editor.

各版本下載點

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

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


1.0.0 | 1.0.2 | 1.0.3 | 1.0.4 | 1.0.5 | 1.0.6 | 1.0.7 | 1.0.8 | trunk |

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

  • If Menu – Visibility control for Menus 》藉由可見度規則,您可以控制網站訪客看到哪些選單項目。以下是一些範例:, , 僅顯示選單項目,當 使用者已登入, 當裝置為行動裝置時,隱藏選單, 顯示選單 給...。
  • Dynamic Visibility for Elementor 》Dynamic Visibility 擴充套件讓您可以隱藏小工具、欄位、容器、區段或頁面。, 當您正在建立不想向所有人展示的內容時,這尤其有用。, 這是一個 Elementor 的...。
  • Block Visibility — Conditional Visibility Control for the Block Editor 》借助 Block Visibility 外掛,在 WordPress 中輕鬆創建動態內容,以提高轉換率,增強用戶體驗並改進工作流程。, 這個無需程式碼的解決方案,讓您可以控制網站...。
  • WordPress Hide Posts 》這個外掛可以讓你隱藏首頁、分類頁、搜索頁、標籤頁、作者頁、RSS Feed、REST API、文章導覽和原生最近文章小工具的任何文章。, 試試看 Demo, 功能:, , 使用...。
  • My Private Site 》本外掛可讓管理員將 WordPress 網站限制僅供已註冊且已登入的使用者查看,任何未登入的使用者試圖查看網站上的任何頁面、文章或其他部分,都會顯示 WordPress...。
  • WP-ShowHide 》預設情況下,內容是隱藏的,使用者必須點擊「顯示內容」連結來切換內容。與 Engadget 為他們的新聞稿所做的方式相似。範例用法:[showhide type="pressreleas...。
  • Product Visibility by User Role for WooCommerce 》「Product Visibility by User Role for WooCommerce」外掛可依照顧客的使用者角色來顯示/隱藏 WooCommerce 產品。, 您可以選擇如何隱藏產品:, , 在商店和搜...。
  • Different Menu in Different Pages – Control Menu Visibility (All in One) 》設置不同用戶的不同選單,自定義網址、頁面、文章、頁面模板、文章類型、類別、分類等。, 如何設置不同的選單?, , 功能, , 在不同頁面使用不同選單設置有易...。
  • Restrict Media Library Access 》這個外掛可以限制作者和貢獻者的存取權限,讓他們只能看到自己上傳到媒體庫中的檔案。, 這個外掛有兩個主要用途:當媒體庫過於龐大時,讓作者更容易找到自己...。
  • Conditional Blocks – Advanced Content Visibility Control for WordPress 》「Conditional Blocks」可以讓你為你的訪客和客戶創建獨特的內容。使用 WordPress 区块编辑器中的可见性控制现在变得更加容易。, , 发挥创意,使用动态内容构...。
  • Widgets Control 》Widgets Control 是一個工具箱,可以管理所有小工具、側邊欄、內容區域和內容區塊的可見度。, 它允許根據條件顯示小工具和側邊欄 - 您可以選擇僅在某些頁面上...。
  • Responsive Block Control – Hide blocks based on display width 》Responsive Block Control 將響應式切換添加到區塊編輯器(即 Gutenberg)的“可見性”面板中,以根據屏幕寬度顯示或隱藏區塊。, 設置, 覆蓋現有斷點, function...。
  • Product Visibility by Country for WooCommerce 》「Product Visibility by Country for WooCommerce」外掛可讓你依據客戶的國家,決定是否顯示/隱藏 WooCommerce 的商品。外掛會自動透過 IP偵測客戶所在地。,...。
  • If Widget – Visibility control for Widgets 》透過If Widget 插件,您可以控制 widget 顯示的頁面。使用自訂可見性規則(無需 PHP 或技術知識),顯示或隱藏 widget。, 此插件易於使用,每個 widget 都會...。
  • Eyes Only: User Access Shortcode 》8220;hide” attribute with a value of “yes” will reverse this behavior and hide the content from the specified users., The plugin ...。

文章
Filter
Apply Filters
Mastodon