WP_Block_Supports::register() – Registers a block support.

You appear to be a bot. Output may be restricted

Description

Registers a block support.

Usage

WP_Block_Supports::register( $block_support_name, $block_support_config );

Parameters

$block_support_name
( string ) required – Block support name.
$block_support_config
( array ) required – Array containing the properties of the block support.

Returns

void

Source

File name: wordpress/wp-includes/class-wp-block-supports.php
Lines:

1 to 6 of 6
  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 )
    );
  }
 

 View on GitHub View on Trac