Download the PHP package juvo/wp-block-bridge without Composer
On this page you can find all versions of the php package juvo/wp-block-bridge. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package wp-block-bridge
WP Block Bridge
Use WordPress blocks as the source of truth for page builders like Bricks and Elementor.
Features
- Render block templates in page builder elements
- Automatic asset enqueueing (script modules)
- Interactivity API directive processing
- Unified API for context and attributes across all render contexts
-
Requirements
- PHP 8.1+
- Blocks must be registered using
block.jsonmetadata - Blocks must be registered globally (e.g., via
register_block_type()orwp_register_block_types_from_metadata_collection())
Installation
Usage
In render.php (Gutenberg + Page Builders)
In Bricks Element
In Elementor Widget
API
| Method | Description |
|---|---|
context($block) |
Get block context array |
attributes($block) |
Get block attributes array |
render($html, $block) |
Wrap HTML and process directives |
render_block($name, $path, $context, $attrs) |
Full render for page builders |
is_bridge_context() |
Check if rendering via page builder |
is_editor_context() |
Check if in block editor SSR |
All versions of wp-block-bridge with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1.0
The package juvo/wp-block-bridge contains the following files
Loading the files please wait ...