Skip to content

Change classname in Block Editor save function after compile #57561

Answered by t-hamano
jkang-moneyjet asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @jkang-moneyjet,

I want to make my custom block to be valid even though I edit class name or add more components on Save.js

Basically, if you update the markup that is saved, i.e. the save.js function, you will need block deprecation to migrate to the new markup without breaking the block. Below are the relevant documents.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jkang-moneyjet
Comment options

Answer selected by jkang-moneyjet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants