Skip to content

Commit

Permalink
Documentation - Fix outdated specification in the "Anatomy of a Block" (
Browse files Browse the repository at this point in the history
#53581)

* Updated old specification

* Corrected according to review.

Co-authored-by: Fabian Kägy <mail@fabian-kaegy.de>

---------

Co-authored-by: Fabian Kägy <mail@fabian-kaegy.de>
  • Loading branch information
atachibana and fabiankaegy committed Aug 13, 2023
1 parent 9394581 commit 8813324
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/getting-started/create-block/block-anatomy.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ The first parameter in the **registerBlockType** function is the block name, thi

The second parameter to the function is the block object. See the [block registration documentation](/docs/reference-guides/block-api/block-registration.md) for full details.

The last two block object properties are **edit** and **save**, these are the key parts of a block. Both properties are functions that are included via the import above.
Two common object properties are **edit** and **save**, these are the key parts of a block. Both properties are functions that are included via the import above.

The results of the edit function is what the editor will render to the editor page when the block is inserted.

Expand Down Expand Up @@ -65,7 +65,7 @@ The **title** is the title of the block shown in the Inserter and in other areas

The **icon** is the icon shown in the Inserter. The icon property expects any Dashicon name as a string, see [list of available icons](https://developer.wordpress.org/resource/dashicons/). You can also provide an SVG object, but for now it's easiest to just pick a Dashicon name.

The **category** specified is a string and must be one of: "common, formatting, layout, widgets, or embed". You can create your own custom category name, [see documentation for details](/docs/reference-guides/filters/block-filters.md#managing-block-categories).
The **category** specified is a string and must be one of: "text, media, design, widgets, theme, or embed". You can create your own custom category name, [see documentation for details](/docs/reference-guides/filters/block-filters.md#managing-block-categories).

## Internationalization

Expand Down

0 comments on commit 8813324

Please sign in to comment.