Automattic\WooCommerce\Blocks\BlockTypes

ProductRatingCounter::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.

Метод класса: ProductRatingCounter{}

Хуков нет.

Возвращает

Массив.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_block_type_supports();

Код ProductRatingCounter::get_block_type_supports() WC 9.6.2

protected function get_block_type_supports() {
	return array(
		'color'                  =>
			array(
				'text'                            => true,
				'background'                      => false,
				'link'                            => false,
				'__experimentalSkipSerialization' => true,
			),
		'typography'             =>
			array(
				'fontSize'                        => true,
				'__experimentalSkipSerialization' => true,
			),
		'spacing'                =>
			array(
				'margin'                          => true,
				'padding'                         => true,
				'__experimentalSkipSerialization' => true,
			),
		'__experimentalSelector' => '.wc-block-components-product-rating-counter',
	);
}