---
id: gk-block-mcp-block-dual-storage
title: "Filter - gk/block-mcp/block/dual-storage"
sidebar_label: "gk/block-mcp/block/dual-storage"
tags:
  - "2.0.0"
---

# 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.

```php
add_filter( 'gk/block-mcp/block/dual-storage', function ( $blocks ) {
    $blocks[] = 'acme/pricing-table';
    return $blocks;
} );
```

### Since

- [2.0.0](../../since/2-0-0/)

### Source

Defined in `wordpress-plugin/gk-block-api/includes/class-block-inventory.php` at line 158

