WP_Block_Supports::register() WordPress Method
The register() method is used to register a new block support. This is done by providing a name and an array of settings. The register() method can be used to override an existing block support by providing the same name.
WP_Block_Supports::register( string $block_support_name, array $block_support_config ) #
Registers a block support.
Contents
Parameters
- $block_support_name
 (string)(Required)Block support name.
- $block_support_config
 (array)(Required)Array containing the properties of the block support.
Source
File: wp-includes/class-wp-block-supports.php
	public function register( $block_support_name, $block_support_config ) {
		$this->block_supports[ $block_support_name ] = array_merge(
			$block_support_config,
			array( 'name' => $block_support_name )
		);
	}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description | 
|---|---|
| 5.6.0 | Introduced. |