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

Registers a block support.


Parameters

$block_support_name string Required
Block support name.
$block_support_config array Required
Array containing the properties of the block support.

Top ↑

Source

File: wp-includes/class-wp-block-supports.php. View all references

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

Top ↑

Changelog

Changelog
Version Description
5.6.0 Introduced.

Top ↑

User Contributed Notes

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