Automattic\WooCommerce\Blocks\BlockTypes
ProductCategories::get_block_type_attributes()
Get block attributes.
Метод класса: ProductCategories{}
Хуков нет.
Возвращает
Массив
.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_block_type_attributes();
Код ProductCategories::get_block_type_attributes() ProductCategories::get block type attributes WC 8.7.0
protected function get_block_type_attributes() { return array_merge( parent::get_block_type_attributes(), array( 'align' => $this->get_schema_align(), 'className' => $this->get_schema_string(), 'hasCount' => $this->get_schema_boolean( true ), 'hasImage' => $this->get_schema_boolean( false ), 'hasEmpty' => $this->get_schema_boolean( false ), 'isDropdown' => $this->get_schema_boolean( false ), 'isHierarchical' => $this->get_schema_boolean( true ), 'showChildrenOnly' => $this->get_schema_boolean( false ), 'textColor' => $this->get_schema_string(), 'fontSize' => $this->get_schema_string(), 'lineHeight' => $this->get_schema_string(), 'style' => array( 'type' => 'object' ), ) ); }