Registers a block support.
Parameters
$block_support_name
stringrequired- Block support name.
$block_support_config
arrayrequired- 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
Version | Description |
---|---|
5.6.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.