Skip to content

Commit 5f2f5f6

Browse files
committed
Docs: Correct the documented type for the block_hooks argument when registering a block type.
This argument is an associative array of strings, not an array of arrays. See #59313, 59651 git-svn-id: https://develop.svn.wordpress.org/trunk@57140 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 6a891c7 commit 5f2f5f6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/wp-includes/class-wp-block-type.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class WP_Block_Type {
181181
* next to the "anchor" block whenever the latter is encountered.
182182
*
183183
* @since 6.4.0
184-
* @var array[]
184+
* @var string[]
185185
*/
186186
public $block_hooks = array();
187187

@@ -299,7 +299,7 @@ class WP_Block_Type {
299299
* @type array|null $attributes Block type attributes property schemas.
300300
* @type string[] $uses_context Context values inherited by blocks of this type.
301301
* @type string[]|null $provides_context Context provided by blocks of this type.
302-
* @type array[] $block_hooks Block hooks.
302+
* @type string[] $block_hooks Block hooks.
303303
* @type string[] $editor_script_handles Block type editor only script handles.
304304
* @type string[] $script_handles Block type front end and editor script handles.
305305
* @type string[] $view_script_handles Block type front end only script handles.

0 commit comments

Comments
 (0)