Skip to content

Instantly share code, notes, and snippets.

@artemsites
Last active March 28, 2024 10:29
Show Gist options
  • Save artemsites/72547492c51b2a42482cd8d94184e003 to your computer and use it in GitHub Desktop.
Save artemsites/72547492c51b2a42482cd8d94184e003 to your computer and use it in GitHub Desktop.

WordPress Gutenberg

Documentation

https://github.com/WordPress/gutenberg/tree/trunk/docs/getting-started

Остановился

https://developer.wordpress.org/block-editor/getting-started/tutorial/#updating-index-js

npx @wordpress/create-block@latest

Examples WordPress/block-development-examples

https://github.com/WordPress/block-development-examples

What’s new for developers? (March 2024)

https://developer.wordpress.org/news/

Example block-development-examples/plugins/copyright-date-block-09aac3/

https://github.com/WordPress/block-development-examples/tree/trunk/plugins/copyright-date-block-09aac3

Supports

https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/

Panel

https://developer.wordpress.org/block-editor/reference-guides/components/panel/#panelbody

Attributes

https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/

@wordpress/create-block

https://developer.wordpress.org/block-editor/reference-guides/packages/packages-create-block/

@wordpress/scripts

https://developer.wordpress.org/block-editor/reference-guides/packages/packages-scripts/

render_block( array $parsed_block ): string

https://developer.wordpress.org/reference/functions/render_block/

js registerBlockType

https://developer.wordpress.org/block-editor/reference-guides/packages/packages-blocks/#registerblocktype

php register_block_type( string|WP_Block_Type $block_type, array $args = array() ): WP_Block_Type|false

https://developer.wordpress.org/reference/functions/register_block_type/

Validation

https://developer.wordpress.org/block-editor/reference-guides/block-api/block-edit-save/#validation

Static vs. dynamic blocks: What’s the difference?

https://developer.wordpress.org/news/2023/02/27/static-vs-dynamic-blocks-whats-the-difference/

Block deprecation – a tutorial

https://developer.wordpress.org/news/2023/03/10/block-deprecation-a-tutorial/

Gutenberg demo

https://wordpress.org/gutenberg/

Get started with wp-env

https://developer.wordpress.org/block-editor/getting-started/devenv/get-started-with-wp-env/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment