Automattic\WooCommerce\Blocks\BlockTypes
AbstractProductGrid::get_schema_content_visibility
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() AbstractProductGrid::get schema content visibility WC 10.4.3
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 ),
),
);
}