How to Bulk Replace Gutenberg Blocks
Bulk replacement becomes safer when indexed source evidence defines the boundary before anything is written. This workflow uses a fresh scan, exact source review, block-content filters when needed, and a read-only preview before apply.
Before you start #
Bulk replacement should begin only after the indexed evidence is current enough to trust.
- Run a fresh full scan.
- Use block inventory, source drill-down, and block-content filters to confirm the exact replacement scope.
- Make sure write-enabled access and your backup expectations match the size of the batch.
Recommended workflow #
The safest replacement path is the one that keeps every step explainable to another teammate.
- Review the target block or entity in inventory and open exact sources.
- Choose the correct Refactor mode for the change boundary you actually want.
- Configure the target, scope, and any relevant attribute or block-content filters.
- Generate a read-only preview and inspect the rows that would change.
- Apply the batch only after the preview matches the intended replacement work.
- Review batch details after apply and keep rollback available for follow-up.
Why preview matters #
Preview is the point where replacement work stops being a guess and becomes something the team can inspect together.
- Preview keeps content unchanged while the batch is still being challenged.
- Preview reveals if the mode or scope is wider than expected.
- Preview gives QA and reviewers a shared checkpoint before apply.
Visual walkthrough #
These views show how the configure flow moves from target selection to a reviewable batch, plus the portable JSON representation of the same work.
Scope discipline and JSON mode #
Refactor configuration can stay in the UI or move through JSON mode, but the same scope discipline still applies when the batch is narrowed by source filters or block content.
- Keep the target, mode, filters, and block-content scope aligned with the same baseline you just reviewed.
- Treat JSON as a way to carry the batch definition, not as a shortcut around preview review.
- If scope feels ambiguous, stop and narrow the evidence before generating the preview.
For the full product-side reference, continue with Refactor .
Where to go next #
Refactor
See the full product-side Refactor reference, including JSON mode and batch details.
Read docsHow to Choose the Right Refactor Mode
Choose between block_instance, entity_reference, and entity_definition before batch setup.
Read guideHow to Validate and Roll Back a Refactor Batch
Validate outcomes after apply and decide when rollback is the right follow-up.
Read guide