Title: WP_Block_Supports::init
Published: December 9, 2020
Last modified: May 20, 2026

---

# WP_Block_Supports::init()

## In this article

 * [Source](https://developer.wordpress.org/reference/classes/wp_block_supports/init/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wp_block_supports/init/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_block_supports/init/?output_format=md#changelog)

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

Initializes the block supports. It registers the block supports block attributes.

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

    ```php
    public static function init() {
    	$instance = self::get_instance();
    	$instance->register_attributes();
    }
    ```

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

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

| Uses | Description | 
| [WP_Block_Supports::get_instance()](https://developer.wordpress.org/reference/classes/wp_block_supports/get_instance/)`wp-includes/class-wp-block-supports.php` |

Utility method to retrieve the main instance of the class.

  |

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

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

## User Contributed Notes

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