• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WooCommerce a2z

WooCommerce a2z

WooCommerce

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / AbstractProductGrid::get_schema_content_visibility() – Get the schema for the contentVisibility attribute

You appear to be a bot. Output may be restricted

Description

Get the schema for the contentVisibility attribute

Usage

$array = AbstractProductGrid::get_schema_content_visibility();

Parameters

Returns

array List of block attributes with type and defaults.

Source

File name: woocommerce/packages/woocommerce-blocks/src/BlockTypes/AbstractProductGrid.php
Lines:

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

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 8th February 2020

Primary Sidebar

Information

Function name: AbstractProductGrid::get_schema_content_visibility
Class ref: AbstractProductGrid
Plugin ref: WooCommerce
Version: 5.2.2
Sourcefile: packages/woocommerce-blocks/src/BlockTypes/AbstractProductGrid.php
File ref: packages/woocommerce-blocks/src/BlockTypes/AbstractProductGrid.php
Deprecated?: No
API Letters: A,C,G,S,V

Footer

WooCommerce a2z
WooCommerce a2z
WooCommerce
WordPress 5.7.1
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  woocommerce.wp-a2z.org
© Copyright WooCommerce a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites