| 开发者 |
davet86
alkesh7 |
|---|---|
| 更新时间 | 2026年11月18日 11:03 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[bpmgr_block id="123"]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:
general/acf-blocks/public/acf-blocks/login-register/acf-blocks/members/acf-blocks//wp-content/plugins/onceblock/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.
The plugin is designed to work with any WordPress theme. It doesn't modify your theme files but provides hooks and filters for integration.
Yes, block presets work within the Gutenberg editor and are compatible with most page builders that support WordPress blocks.
Go to Settings > Blocks Presets and modify the "ACF Block Folders" setting to specify which theme folders should be scanned for ACF blocks.
onceblock)block post type, the [block_preset] shortcode, do_cpt_block(), the "Enable Legacy Post Type" setting and the migration toolwp_kses_post() in the block render callback/block-preset/ (previously /bpmgr_block_preset/); the old URL redirects to the new one$ is not defined), which broke the new Duplicate action and other admin script featuresblock-presets-manager) and changed the internal code prefix to bpmgrload_plugin_textdomain() call (translations are loaded automatically by WordPress.org)bpmgr_render_block_preset(), do_cpt_block(), or related helper functions were called from a themeplugins_loaded caused by a missing text domain loaderregister_activation_hook()/register_deactivation_hook() being registered too late; plugin settings and the usage-tracking table are now correctly created on activation[bpmgr_block] and [block_preset] shortcodes now actually register and render (they previously never worked)wp_set_script_translations(), so they can actually be translated