Automattic\WooCommerce\Blocks\BlockTypes

AbstractProductGrid::get_schema_content_visibility()protectedWC 1.0

Get the schema for the contentVisibility attribute

Метод класса: AbstractProductGrid{}

Хуков нет.

Возвращает

Массив. List of block attributes with type and defaults.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_schema_content_visibility();

Код AbstractProductGrid::get_schema_content_visibility() WC 8.7.0

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 ),
		),
	);
}