-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to change or replace registered block name #17372
Comments
Hi there! For general help requests, please post in the support forum at https://wordpress.org/support/forum/how-to-and-troubleshooting/. Technical help requests have their own section of the support forum at https://wordpress.org/support/forum/wp-advanced/. You may also ask for technical support at https://wordpress.stackexchange.com/. Please make sure you have checked the Handbook at https://wordpress.org/gutenberg/handbook before asking your question. For your specific case, please check out https://developer.wordpress.org/block-editor/developers/block-api/block-registration/#transforms-optional and https://developer.wordpress.org/block-editor/developers/block-api/block-deprecation/ for documentation. |
Maybe it would be an option to add a name property to objects in the deprecated property of the new block to accommodate a new block name? |
Yes something like that, that will be great if you can add a name property to objects in the deprecated property so i can update or change my block name because i have some other block also that i want to update and change the block name. |
Is there any other alternative way to do this? like search the '<!-- wp:bb-gutenberg' and replace with '<!-- wp:better-gutenberg' so the old block name was replace by "<!-- wp:better-gutenberg". |
Is your feature request related to a problem? Please describe.
I've created a block like bb-gutenberg/box but i have a dynamic block already with prefix better-gutenberg/box. After updated my block to better-gutenberg/box name it breaks everything.
Describe the solution you'd like
I just want to update my block from bb-gutenberg/box name to better-gutenberg/box name without breaking my old content that using old block name (bb-gutenberg/box)
The text was updated successfully, but these errors were encountered: