Automattic\WooCommerce\Blocks\BlockTypes

AbstractProductGrid::get_schema_content_visibility()protectedWC 1.0

Get the schema for the contentVisibility attribute

Method of the class: AbstractProductGrid{}

No Hooks.

Return

Array. List of block attributes with type and defaults.

Usage

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

AbstractProductGrid::get_schema_content_visibility() code WC 9.4.2

protected function get_schema_content_visibility() {
	return array(
		'type'       => 'object',
		'properties' => array(
			'image'  => $this->get_schema_boolean( true ),
			'title'  => $this->get_schema_boolean( true ),
			'price'  => $this->get_schema_boolean( true ),
			'rating' => $this->get_schema_boolean( true ),
			'button' => $this->get_schema_boolean( true ),
		),
	);
}