Automattic\WooCommerce\Blocks\BlockTypes
ProductTitle::get_block_type_supports()
Get block supports. Shared with the frontend. IMPORTANT: If you change anything here, make sure to update the JS file too.
Method of the class: ProductTitle{}
No Hooks.
Return
Array
.
Usage
// protected - for code of main (parent) or child class $result = $this->get_block_type_supports();
ProductTitle::get_block_type_supports() ProductTitle::get block type supports code WC 9.7.1
protected function get_block_type_supports() { return array( 'color' => array( 'gradients' => true, 'background' => true, 'link' => false, 'text' => true, '__experimentalSkipSerialization' => true, ), 'typography' => array( 'fontSize' => true, 'lineHeight' => true, '__experimentalFontWeight' => true, '__experimentalTextTransform' => true, '__experimentalFontFamily' => true, ), 'spacing' => array( 'margin' => true, '__experimentalSkipSerialization' => true, ), '__experimentalSelector' => '.wc-block-components-product-title', ); }