
內容簡介
Blockwright Workbench 是一款專為區塊佈景主題開發與維護設計的外掛,旨在解決檔案與資料庫之間的同步問題。它提供一個簡單的管理介面,讓使用者能夠快速重設編輯、重新掃描主題模式及清除快取,提升開發效率。
【主要功能】
• 一鍵重設主題編輯覆蓋設定
• 重新掃描主題模式並清除快取
• 清除所有快取以顯示最新變更
• 清除所有暫存資料
外掛標籤
開發者團隊
原文外掛簡介
Building or maintaining a block theme means fighting the file-to-database drift: Site Editor edits are saved to the database and silently override your theme files. WordPress can reset those overrides only one item at a time, through buried menus, and some cleanups (rescanning pattern files, flushing the theme.json cache and OPcache) have no button anywhere.
The Workbench puts the whole development loop in one admin-bar menu:
Reset Site Editor overrides for the active theme (templates, template parts, global styles) in one click
Rescan theme patterns, clearing the pattern-file cache first so newly added pattern files actually appear
Flush every cache that hides your changes: object cache, theme.json cache, OPcache
Clear all transients
Safe by design: the Workbench is OFF by default and only appears in a development environment (wp_get_environment_type()), or when you opt in with define( 'BLOCKWRIGHT_WORKBENCH', true ); in wp-config. Every tool is capability-gated and nonce-protected; the one destructive tool requires an explicit confirmation.
Pairs well with the official Create Block Theme plugin: use Create Block Theme to save the changes you want INTO your theme files, and the Workbench to clear out the state you do not want.
Works with any block theme.
