Automattic\WooCommerce\Blocks\BlockTypes
ProductButton::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.
Метод класса: ProductButton{}
Хуков нет.
Возвращает
Массив
.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_block_type_supports();
Код ProductButton::get_block_type_supports() ProductButton::get block type supports WC 7.5.1
protected function get_block_type_supports() { return array( 'color' => array( 'background' => true, 'link' => false, 'text' => true, '__experimentalSkipSerialization' => true, ), '__experimentalBorder' => array( 'radius' => true, '__experimentalSkipSerialization' => true, ), 'typography' => array( 'fontSize' => true, '__experimentalFontWeight' => true, '__experimentalSkipSerialization' => true, ), '__experimentalSelector' => '.wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button', ); }