-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Docs: Update Create a Block tutorial to use block.json
#29027
Conversation
f653dfd
to
c8185d1
Compare
Size Change: 0 B Total Size: 1.38 MB ℹ️ View Unchanged
|
There is more work necessary to update the rest of the document in the tutorial but it can be addressed separately since this introduction works as its own mini-tutorial. In addition to that, those changes are mostly necessary to align with what newly introduced There is also another related PR from @jessynd that updates the part that handles the font that needs further refinements: #27749. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good and tests fine for me. 👍
Description
Follow-up for #28883.
Related to #29023.
This PR aligns with the changes applied in #28883. The PHP code in the scaffolded project for the block uses now
register_block_type_from_metadata
with theblock.json
file to register it.How has this been tested?
I executed
npx wp-create-block gutenpride --no-wp-scripts
to scaffold a block and use for reference when documenting changes.Types of changes
Documentation.
Checklist: