| 开发者 | atomjb |
|---|---|
| 更新时间 | 2026年5月19日 06:04 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
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:
npm install.npm run build.rootstuff-block-permissions folder to /wp-content/plugins/.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.
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.
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.
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.
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.
The plugin runs per-site. Settings are stored per-site. Network-level configuration is not currently supported.
Deactivating leaves the settings in the database (so reactivating restores your rules). Deleting via the WordPress Plugins screen removes the option entirely.
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.