Title: unregister_block_type
Published: December 6, 2018
Last modified: February 24, 2026

---

# unregister_block_type( string|WP_Block_Type $name ): 󠀁[WP_Block_Type](https://developer.wordpress.org/reference/classes/wp_block_type/)󠁿|false

## In this article

 * [Parameters](https://developer.wordpress.org/reference/functions/unregister_block_type/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/functions/unregister_block_type/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/functions/unregister_block_type/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/unregister_block_type/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/unregister_block_type/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/functions/unregister_block_type/?output_format=md#user-contributed-notes)

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

Unregisters a block type.

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

 `$name`string|[WP_Block_Type](https://developer.wordpress.org/reference/classes/wp_block_type/)
required

Block type name including namespace, or alternatively a complete [WP_Block_Type](https://developer.wordpress.org/reference/classes/wp_block_type/)
instance.

## 󠀁[Return](https://developer.wordpress.org/reference/functions/unregister_block_type/?output_format=md#return)󠁿

 [WP_Block_Type](https://developer.wordpress.org/reference/classes/wp_block_type/)
|false The unregistered block type on success, or false on failure.

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

    ```php
    function unregister_block_type( $name ) {
    	return WP_Block_Type_Registry::get_instance()->unregister( $name );
    }
    ```

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

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

| Uses | Description | 
| [WP_Block_Type_Registry::get_instance()](https://developer.wordpress.org/reference/classes/wp_block_type_registry/get_instance/)`wp-includes/class-wp-block-type-registry.php` |

Utility method to retrieve the main instance of the class.

  |

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

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

## 󠀁[User Contributed Notes](https://developer.wordpress.org/reference/functions/unregister_block_type/?output_format=md#user-contributed-notes)󠁿

 1.  [Skip to note 2 content](https://developer.wordpress.org/reference/functions/unregister_block_type/?output_format=md#comment-content-3174)
 2.   [rabmalin](https://profiles.wordpress.org/rabmalin/)  [  7 years ago  ](https://developer.wordpress.org/reference/functions/unregister_block_type/#comment-3174)
 3. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Funregister_block_type%2F%23comment-3174)
    Vote results for this note: 2[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Funregister_block_type%2F%23comment-3174)
 4.     ```php
        // Unregisters block type `my_namespace/my_block`.
        unregister_block_type( 'my_namespace/my_block' );
        ```
    
 5.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Funregister_block_type%2F%3Freplytocom%3D3174%23feedback-editor-3174)

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