Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Remove extraneous params from block_type_metadata hook #34151

Merged
merged 1 commit into from
Aug 19, 2021

Commits on Aug 19, 2021

  1. Docs: remove extraneous params from block_type_metadata hook

    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
    cr0ybot committed Aug 19, 2021
    Configuration menu
    Copy the full SHA
    68a61bf View commit details
    Browse the repository at this point in the history