WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\BlockTypes

ProductOnSale::get_block_type_attributes() protected WC 1.0

Get block attributes.

{} It's a method of the class: ProductOnSale{}

No Hooks.

Return

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_block_type_attributes();

Code of ProductOnSale::get_block_type_attributes() WC 5.6.0

protected function get_block_type_attributes() {
	return array_merge(
		parent::get_block_type_attributes(),
		array(
			'className' => $this->get_schema_string(),
			'orderby'   => $this->get_schema_orderby(),
		)
	);
}