Skip to content

Feat: Add blocks.syncType filter for sync toggle #71459

@badasswp

Description

@badasswp

What problem does this address?

At the moment, when a new pattern is created, the synced toggle is forced into ON mode. This feels counter-intuitive for users who would prefer that this is OFF by default so that they can decide to toggle it ON if they wish so. Plus, there's no way of customising this whatsoever because the toggle value is hard-coded by default to undefined.

Screenshot 2025-09-02 at 12 57 26

What is your proposed solution?

I suggest we add a filter blocks.syncType to the wp_block pattern post type so that users can be able to correctly set the toggle's default state when a new pattern is created.

Metadata

Metadata

Assignees

Labels

[Feature] PatternsA collection of blocks that can be synced (previously reusable blocks) or unsynced[Status] In ProgressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions