Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs: remove extraneous params from
block_type_metadata
hook (#34151)
The `block_type_metadata` hook only accepts one argument, so the doc showing `add_filter( 'block_type_metadata', 'filter_metadata_registration', 10, 2 );` confused me. I checked the source of the filter on trac to make sure: https://core.trac.wordpress.org/browser/tags/5.8/src/wp-includes/blocks.php#L215
- Loading branch information