Filter: gk/block-mcp/block/dual-storage
Teach the editor about blocks that keep content in two places.
Some blocks store the same content in both their attributes and their rendered innerHTML, so editing one without the other leaves the block out of sync and visibly broken. The plugin auto-detects these once it has scanned your site, but until then it leans on this starter list. Register a custom or third-party block here so agent edits update both halves from day one — no waiting for the scan.
Parameters
| Name | Type | Description |
|---|---|---|
| $dual_blocks | string[] | Block names treated as dual-storage. |
Example
// Mark a custom block as dual-storage so edits stay in sync.
add_filter( 'gk/block-mcp/block/dual-storage', function ( $blocks ) {
$blocks[] = 'acme/pricing-table';
return $blocks;
} );
Since
Source
Defined in wordpress-plugin/gk-block-api/includes/class-block-inventory.php at line 158