跳到内容

Rootstuff Block Permissions

v0.1.1

atomjb · 2026年5月8日 上架

Block manager for the WordPress block editor: disable or hide Gutenberg blocks and patterns per user role and post type.

正在使用
10 以下
评分
暂无
累计下载
416
最近更新
2026年5月19日
需要 WordPress 6.0+已测试到 6.9.12PHP 7.4+

贡献者

截图

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.
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.

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

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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums