Make WordPress Core


Ignore:
Timestamp:
09/14/2023 01:23:13 PM (3 years ago)
Author:
Bernhard Reiter
Message:

General: Add block_hooks field to block type registration, REST API.

In order to implement Block Hooks, we need to add a new block_hooks field to the WP_Block_Type class, as well as to block registration related functions, the block types REST API controller, etc.

Props gziolo.
Fixes #59346. See #59313.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/data/blocks/notice/block.json

    r55673 r56587  
    3030        "selectors": {
    3131                "root": ".wp-block-notice"
     32        },
     33        "blockHooks": {
     34                "core/post-content": "before"
    3235        },
    3336        "supports": {
Note: See TracChangeset for help on using the changeset viewer.