block_type_metadata_settings WordPress Filter Hook

The block_type_metadata_settings hook allows you to modify the settings for a specific block type. This hook is triggered when the block type is registered.

apply_filters( 'block_type_metadata_settings', array $settings, array $metadata ) #

Filters the settings determined from the block type metadata.


Parameters

$settings

(array)Array of determined settings for registering a block type.

$metadata

(array)Metadata provided for registering a block type.


Top ↑

Source

File: wp-includes/blocks.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.