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