Automattic\WooCommerce\Blocks\BlockTypes
ProductTag::get_block_type_attributes
Get block attributes.
Method of the class: ProductTag{}
No Hooks.
Returns
Array.
Usage
// protected - for code of main (parent) or child class $result = $this->get_block_type_attributes();
ProductTag::get_block_type_attributes() ProductTag::get block type attributes code WC 10.3.6
protected function get_block_type_attributes() {
return array(
'className' => $this->get_schema_string(),
'columns' => $this->get_schema_number( wc_get_theme_support( 'product_blocks::default_columns', 3 ) ),
'rows' => $this->get_schema_number( wc_get_theme_support( 'product_blocks::default_rows', 3 ) ),
'contentVisibility' => $this->get_schema_content_visibility(),
'align' => $this->get_schema_align(),
'alignButtons' => $this->get_schema_boolean( false ),
'orderby' => $this->get_schema_orderby(),
'tags' => $this->get_schema_list_ids(),
'tagOperator' => array(
'type' => 'string',
'default' => 'any',
),
'isPreview' => $this->get_schema_boolean( false ),
'stockStatus' => array_keys( wc_get_product_stock_status_options() ),
);
}