Automattic\WooCommerce\Blocks\BlockTypes
HandpickedProducts::get_attributes() protected WC 1.0
Get block attributes.
{} Это метод класса: HandpickedProducts{}
Хуков нет.
Возвращает
Массив
. Ничего.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_block_type_attributes();
Код HandpickedProducts::get_attributes() HandpickedProducts::get attributes WC 5.2.2
protected function get_block_type_attributes() {
return array(
'align' => $this->get_schema_align(),
'alignButtons' => $this->get_schema_boolean( false ),
'className' => $this->get_schema_string(),
'columns' => $this->get_schema_number( wc_get_theme_support( 'product_blocks::default_columns', 3 ) ),
'editMode' => $this->get_schema_boolean( true ),
'orderby' => $this->get_schema_orderby(),
'products' => $this->get_schema_list_ids(),
'contentVisibility' => $this->get_schema_content_visibility(),
'isPreview' => $this->get_schema_boolean( false ),
);
}