Linux 软件免费装
Banner图

OnceBlock – Build Once, Insert Anywhere

开发者 davet86
alkesh7
更新时间 2026年11月18日 11:03
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

blocks gutenberg native reusable presets

下载

1.0.7

详情介绍:

OnceBlock is a comprehensive solution for managing reusable block content in WordPress. This plugin allows you to create, organize, and deploy block presets across your website with ease. Key Features Perfect For Usage Examples In PHP templates: bpmgr_render_block_preset(123); In content: [bpmgr_block id="123"] REST API: GET /wp-json/bpmgr/v1/block-presets, GET /wp-json/bpmgr/v1/block-presets/123, GET /wp-json/bpmgr/v1/block-presets/123/render ACF Integration The plugin automatically scans specified theme folders for ACF blocks and registers them in the Gutenberg editor. Default folders include: You can customize these folders in the plugin settings.

安装:

  1. Upload the plugin files to /wp-content/plugins/onceblock/
  2. Activate the plugin through the 'Plugins' screen in WordPress
  3. Navigate to Settings > Blocks Presets to configure the plugin
  4. Start creating block presets under the new "Block Presets" menu

屏幕截图:

  • Insert a preset in the block editor: search and filter your library, then pick a preset from the sidebar.
  • Usage statistics show your most used and unused presets.
  • Simple settings, with optional ACF block registration from theme folders.

升级注意事项:

1.0.7 Updates the Plugin URI to the renamed GitHub repository. No functional changes. 1.0.6 The plugin is renamed to OnceBlock. The legacy block post type, [block_preset] shortcode and do_cpt_block() function are removed; use bpmgr_block_preset, [bpmgr_block] and bpmgr_render_block_preset(). 1.0.5 Removes the "Tested up to" line from the plugin header. No functional changes. 1.0.4 Updates the plugin author name and Plugin URI. No functional changes. 1.0.3 Preset URLs change to /block-preset/ and several admin and activation fixes. Rewrite rules are flushed automatically on activation. 1.0.2 Fixes a fatal error on the Tools page and renames the plugin to Block Presets Manager. 1.0.1 Security and stability update: fixes two fatal-error bugs and closes a settings-validation gap. Upgrade is recommended for all users. 1.0.0 Initial release.

常见问题:

Does this plugin require ACF?

No! This plugin works with pure WordPress and has no external dependencies. ACF integration is completely optional and can be enabled in settings if you have Advanced Custom Fields Pro installed.

Is this compatible with my theme?

The plugin is designed to work with any WordPress theme. It doesn't modify your theme files but provides hooks and filters for integration.

Can I use this with page builders?

Yes, block presets work within the Gutenberg editor and are compatible with most page builders that support WordPress blocks.

How do I customize the block folders?

Go to Settings > Blocks Presets and modify the "ACF Block Folders" setting to specify which theme folders should be scanned for ACF blocks.

更新日志:

1.0.7 1.0.6 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0