Linux 软件免费装
Banner图

Rootstuff Block Permissions

开发者 atomjb
更新时间 2026年5月19日 06:04
PHP版本: 7.4 及以上
WordPress版本: 6.9
版权: GPLv2 or later
版权网址: 版权信息

标签

block editor hide blocks user roles disable blocks block manager

下载

0.1.0 0.1.1

详情介绍:

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

安装:

  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.

屏幕截图:

  • Override editor showing role and post-type selectors plus the active rule status.
  • Pattern tab with the same allowlist UI applied to registered patterns.
  • Site-wide toggles for administrators and the WordPress core / remote pattern sources.

升级注意事项:

0.1.1 Metadata refresh only. No action required. 0.1.0 Initial release.

常见问题:

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.

更新日志:

0.1.1 0.1.0