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

首頁外掛目錄 › Block Logic – Full Gutenberg Block Display Control
WordPress 外掛 Block Logic – Full Gutenberg Block Display Control 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
400+
安裝啟用
★★★★★
5/5 分(13 則評價)
906 天前
最後更新
0%
問題解決
WordPress 5.0+ PHP 5.6+ v1.0.8 上架:2020-01-14

內容簡介

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

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

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

功能

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

設定

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

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.8) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Block Logic – Full Gutenberg Block Display Control」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon