Skip to content

Updating an Existing Block

Tom Rhodes edited this page Jul 16, 2024 · 5 revisions

Deprecating a block's old code When updating a static block — if we add any changes to the edit or save functions, we should deprecate the block to make sure we're not impacting the user experience. This is a great source of information with code examples ranging from simpler to more complex ones here: https://developer.wordpress.org/news/2023/03/10/block-deprecation-a-tutorial/


Keep in mind that blocks in this repository can be installed on multiple sites.

When you need to make any changes, make sure those changes (design and/or functionality) are applicable to any other sites and are improving upon the existing code.

Make sure that project-specific styles and data go into the project code and not the block code in this repo .

Clone this wiki locally