WordPress at a glance
function is not described

WP_Block_Supports::register() public WP 5.6.0

Registers a block support.

{} It's a method of the class: WP_Block_Supports{}

No Hooks.

Return

null. Nothing.

Usage

$WP_Block_Supports = new WP_Block_Supports();
$WP_Block_Supports->register( $block_support_name, $block_support_config );
$block_support_name(string) (required)
Block support name.
$block_support_config(array) (required)
Array containing the properties of the block support.

Changelog

Since 5.6.0 Introduced.

Code of WP_Block_Supports::register() WP 5.7.2

<?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 )
	);
}