Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Blocks: Introduce helper function to retrieve hooked blocks
In order to implement Block Hooks (see #59313), we added block_hooks field to the WP_Block_Type class, as well as to block registration related functions. In this follow-up, new helper function gets introduced that is going to compute the list of hooked blocks by other registered blocks for a given block type. Extracted from WordPress/wordpress-develop#5158 and covered with unit tests. Props ockham. Fixes #59383. Built from https://develop.svn.wordpress.org/trunk@56610 git-svn-id: https://core.svn.wordpress.org/trunk@56122 1a063a9b-81f0-0310-95a4-ce76da25c4cd
- Loading branch information