WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.53k stars 4.21k forks source link

Update get-started-with-wp-scripts.md #67119

Open RVledder opened 3 days ago

RVledder commented 3 days ago

@ndiego Hereby the changes.

What?

Added a minor change to the documentation.

Why?

Found myself enqueuing the assets manually. While the preferred approach is to use the register_block_type.

How?

Made that a bit more prominent that you can register the block via the init hook.

Hopefully this is useful.

github-actions[bot] commented 3 days ago

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: RVledder <ravledder@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

github-actions[bot] commented 3 days ago

:wave: Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @RVledder! In case you missed it, we'd love to have you join us in our Slack community.

If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information.