WP_Block_Supports::register( string $block_support_name, array $block_support_config )

In this article

Registers a block support.

Parameters

$block_support_namestringrequired
Block support name.
$block_support_configarrayrequired
Array containing the properties of the block support.

Source

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

Changelog

VersionDescription
5.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.