Title: Rootstuff Block Permissions
Author: atomjb
Published: <strong>2026 年 5 月 8 日</strong>
Last modified: 2026 年 5 月 18 日

---

搜尋外掛

![](https://ps.w.org/rootstuff-block-permissions/assets/banner-772x250.png?rev=3535868)

![](https://ps.w.org/rootstuff-block-permissions/assets/icon.svg?rev=3526087)

# Rootstuff Block Permissions

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

[下載](https://downloads.wordpress.org/plugin/rootstuff-block-permissions.0.1.1.zip)

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

 [技術支援](https://wordpress.org/support/plugin/rootstuff-block-permissions/)

## 外掛說明

Rootstuff Block Permissions is a lightweight block manager that lets you hide or
disable Gutenberg blocks and block patterns per user role and per post type. Tick
what you want hidden, save, and your clients only see the blocks they actually need.

Unlike generic block managers, every rule is scoped by **role** and **post type**,
so editors can have a different toolkit on Pages than on Posts, contributors can
be locked down further, and administrators can be exempt entirely (or included for
previewing the client experience).

#### What it does

 * Hide any registered block from the inserter — core, theme, plugin, ACF blocks,
   anything.
 * Hide block patterns the same way.
 * Optional per-role overrides (Editor, Author, Contributor, custom roles).
 * Optional per-post-type overrides (Posts, Pages, custom post types).
 * Combine both: e.g. “Editor on Page only” gets a different set than “Editor on
   Post”.
 * Disable the WordPress.org remote pattern directory.
 * Disable WordPress core patterns entirely.

#### Why a separate plugin

Most block-management plugins are global — they hide a block for everyone, everywhere.
That breaks down the moment you have multiple client roles or different post types
with different needs. Rootstuff Block Permissions lets you say “hide the Cover block
for Authors on Pages, but keep it for Editors on Posts” without writing any code.

#### Mental model

The plugin is a **denylist**. An empty list means nothing is blocked. You tick what
you want to hide. New blocks added to the site later are automatically allowed unless
you come back and tick them.

A **default rule** applies to everyone unless you create an override. Overrides 
are matched most-specific-first:

 1. Exact role and exact post type
 2. That role on any post type
 3. Any role on that post type
 4. The default rule
 5. None of the above — no restrictions

Multi-role users get the **least restrictive** of their roles’ resolved rules: a
block is hidden only if every one of their roles’ rules hides it.

#### Administrators

By default, administrators bypass all restrictions. There’s an “Apply to administrators”
toggle so you can preview the client experience without switching accounts.

#### Privacy

The plugin stores its configuration in a single WordPress option (`rootstuff_bp_settings`).
It does not connect to any external service, send analytics, or store data about
your users.

#### Development

Source code is available on GitHub: [https://github.com/rootstuff/rootstuff-block-permissions](https://github.com/rootstuff/rootstuff-block-permissions)

The `build/admin.js` file is generated from the `src/` directory using `@wordpress/
scripts`. To rebuild from source:

 1. Clone the repository.
 2. Run `npm install`.
 3. Run `npm run build`.

## 螢幕擷圖

[⌊Main settings screen — default rule with the block list grouped by category.⌉⌊
Main settings screen — default rule with the block list grouped by category.⌉[

Main settings screen — default rule with the block list grouped by category.

[⌊Override editor showing role and post-type selectors plus the active rule status.⌉⌊
Override editor showing role and post-type selectors plus the active rule status
.⌉[

Override editor showing role and post-type selectors plus the active rule status.

[⌊Pattern tab with the same allowlist UI applied to registered patterns.⌉⌊Pattern
tab with the same allowlist UI applied to registered patterns.⌉[

Pattern tab with the same allowlist UI applied to registered patterns.

[⌊Site-wide toggles for administrators and the WordPress core / remote pattern sources.⌉⌊
Site-wide toggles for administrators and the WordPress core / remote pattern sources
.⌉[

Site-wide toggles for administrators and the WordPress core / remote pattern sources.

## 安裝方式

 1. From your WordPress admin, go to **Plugins > Add New**.
 2. Search for **Rootstuff Block Permissions**.
 3. Click **Install Now**, then **Activate**.
 4. Go to **Settings > Rootstuff Block Permissions** to configure.

Or upload manually:

 1. Download the ZIP.
 2. Upload the `rootstuff-block-permissions` folder to `/wp-content/plugins/`.
 3. Activate **Rootstuff Block Permissions** through the **Plugins** menu in WordPress.
 4. Go to **Settings > Rootstuff Block Permissions** to configure.

Activating without ticking anything has zero effect on the editor — the plugin only
enforces a rule once you actually tick at least one block or pattern.

## 常見問題集

### Does this work with custom blocks (ACF, theme blocks, plugin blocks)?

Yes. Anything registered through `register_block_type()` shows up in the settings
page automatically. ACF blocks register on `acf/init`, which runs before our settings
page renders, so they’re picked up too.

### Does it affect what users see on the front end?

No. This plugin filters the block editor’s inserter for non-admin users. Existing
content is never modified. Pages built before you add a rule keep working exactly
as they did.

### Will it slow down my editor?

No. The plugin reads a single option, computes a denylist for the current user, 
and hands the filtered list to WordPress. There’s no database query per block, no
remote calls, and no bundled libraries beyond what WordPress already loads.

### How does this differ from other block manager plugins?

Most block managers are global — one allowlist for everyone. Rootstuff Block Permissions
scopes every rule by user role and post type, so you can give different toolkits
to different roles on different content types. That’s the use case agencies actually
face when handing sites off to clients.

### Can I lock down administrators too?

Yes. There’s an “Apply to administrators” toggle on the settings page. Useful for
previewing the client experience without logging in as a different user.

### Does it work with multisite?

The plugin runs per-site. Settings are stored per-site. Network-level configuration
is not currently supported.

### What happens if I deactivate or delete the plugin?

Deactivating leaves the settings in the database (so reactivating restores your 
rules). Deleting via the WordPress Plugins screen removes the option entirely.

### Does it support block variations or block toolbar controls?

Not in this version. The plugin filters at the block-and-pattern level. Hiding individual
block variations and stripping toolbar controls per role are on the roadmap.

## 使用者評論

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

## 參與者及開發者

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

參與者

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

[將〈Rootstuff Block Permissions〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/rootstuff-block-permissions)

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

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

## 變更記錄

#### 0.1.1

 * Refreshed plugin metadata (tags, short description, intro copy) for clearer discovery
   in the WordPress.org directory. No functional changes.

#### 0.1.0

 * Initial release.

## 中繼資料

 *  版本 **0.1.1**
 *  最後更新 **3 個月前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 6.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.9.7**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/rootstuff-block-permissions/)
 * 標籤:
 * [block-editor](https://tw.wordpress.org/plugins/tags/block-editor/)[disable blocks](https://tw.wordpress.org/plugins/tags/disable-blocks/)
   [user roles](https://tw.wordpress.org/plugins/tags/user-roles/)
 *  [進階檢視](https://tw.wordpress.org/plugins/rootstuff-block-permissions/advanced/)

## 評分

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

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

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

## 參與者

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

## 技術支援

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

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