Title: Blockwright Workbench
Author: markrussellwp
Published: <strong>2026 年 8 月 15 日</strong>
Last modified: 2026 年 8 月 15 日

---

搜尋外掛

![](https://ps.w.org/blockwright-workbench/assets/banner-772x250.png?rev=3649102)

![](https://ps.w.org/blockwright-workbench/assets/icon-256x256.png?rev=3649102)

# Blockwright Workbench

 由 [markrussellwp](https://profiles.wordpress.org/markrussellwp/) 開發

[下載](https://downloads.wordpress.org/plugin/blockwright-workbench.1.0.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/blockwright-workbench/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/blockwright-workbench/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/blockwright-workbench/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/blockwright-workbench/#developers)

 [技術支援](https://wordpress.org/support/plugin/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.

## 螢幕擷圖

[[

## 安裝方式

 1. In your dashboard, go to Plugins, then Add New, then Upload Plugin.
 2. Upload the Blockwright Workbench zip and click Install Now.
 3. Click Activate.
 4. On a site whose environment type is `local` or `development` (`wp_get_environment_type()`),
    the Workbench menu appears in the admin bar right away for users who can edit themes.
    Anywhere else, nothing is shown until you opt in by adding `define( 'BLOCKWRIGHT_WORKBENCH',
    true );` to wp-config.php.

## 常見問題集

### I do not see the Workbench menu

That is the safety gate. It appears only when `wp_get_environment_type()` is `local`
or `development`, or when wp-config defines `BLOCKWRIGHT_WORKBENCH` as true, and
only for users with the `edit_theme_options` capability.

### Is this destructive?

One tool does, on purpose: Reset Site Editor permanently deletes the database rows
that override your theme’s template, template part and global styles files, so the
files win again. It bypasses the trash, so anything customised in the Site Editor
and never exported to your theme is gone. It is marked destructive, requires a confirmation
click, and never runs on a production site unless you explicitly enabled the Workbench
there.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Blockwright Workbench〉的開發相關工作。

參與者

 *   [ markrussellwp ](https://profiles.wordpress.org/markrussellwp/)

[將〈Blockwright Workbench〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/blockwright-workbench)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/blockwright-workbench/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/blockwright-workbench/)，或透過
[RSS](https://plugins.trac.wordpress.org/log/blockwright-workbench/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/blockwright-workbench/)。

## 變更記錄

#### 1.0.0

 * Initial public release: four tools for block-theme development, off by default
   outside a development environment.
 * Reset Site Editor overrides, rescan theme patterns, flush every cache, and clear
   all transients.
 * Every tool is capability-gated and nonce-protected; Reset Site Editor requires
   an explicit confirmation.

## 中繼資料

 *  版本 **1.0.0**
 *  最後更新 **2 天前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 7.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.0.4**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/blockwright-workbench/)
 * 標籤:
 * [block-theme](https://tw.wordpress.org/plugins/tags/block-theme/)[cache](https://tw.wordpress.org/plugins/tags/cache/)
   [developer](https://tw.wordpress.org/plugins/tags/developer/)[reset](https://tw.wordpress.org/plugins/tags/reset/)
   [site editor](https://tw.wordpress.org/plugins/tags/site-editor/)
 *  [進階檢視](https://tw.wordpress.org/plugins/blockwright-workbench/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/blockwright-workbench/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/blockwright-workbench/reviews/)

## 參與者

 *   [ markrussellwp ](https://profiles.wordpress.org/markrussellwp/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/blockwright-workbench/)