Automattic\WooCommerce\Blocks\BlockTypes

ProductPrice::get_block_type_supports()protectedWC 1.0

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: ProductPrice{}

No Hooks.

Return

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_block_type_supports();

ProductPrice::get_block_type_supports() code WC 9.0.1

protected function get_block_type_supports() {
	return array(
		'color'                  =>
		array(
			'text'       => true,
			'background' => true,
			'link'       => false,
		),
		'typography'             =>
		array(
			'fontSize'                 => true,
			'__experimentalFontWeight' => true,
			'__experimentalFontStyle'  => true,
		),
		'__experimentalSelector' => '.wp-block-woocommerce-product-price .wc-block-components-product-price',
	);
}