Title: register_block_type_args
Published: August 11, 2020
Last modified: April 28, 2025

---

# apply_filters( ‘register_block_type_args’, array $args, string $block_type )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/register_block_type_args/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/register_block_type_args/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/register_block_type_args/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/register_block_type_args/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/register_block_type_args/?output_format=md#wp--skip-link--target)

Filters the arguments for registering a block type.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/register_block_type_args/?output_format=md#parameters)󠁿

 `$args`array

Array of arguments for registering a block type.

`$block_type`string

Block type name including namespace.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/register_block_type_args/?output_format=md#source)󠁿

    ```php
    $args = apply_filters( 'register_block_type_args', $args, $this->name );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-block-type.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/class-wp-block-type.php#L573)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-block-type.php#L573-L573)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/register_block_type_args/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_Block_Type::set_props()](https://developer.wordpress.org/reference/classes/wp_block_type/set_props/)`wp-includes/class-wp-block-type.php` |

Sets block type properties.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/register_block_type_args/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.5.0](https://developer.wordpress.org/reference/since/5.5.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fregister_block_type_args%2F)
before being able to contribute a note or feedback.