register_block_type_args WordPress Filter Hook

The register_block_type_args hook allows you to modify the arguments that are used when registering a new block type. This can be useful if you need to change the default behavior of a block or add new settings.

apply_filters( 'register_block_type_args', array $args, string $block_type ) #

Filters the arguments for registering a block type.


Parameters

$args

(array)Array of arguments for registering a block type.

$block_type

(string)Block type name including namespace.


Top ↑

Source

File: wp-includes/class-wp-block-type.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.5.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.