WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Schemas

ProductAttributeSchema::get_properties() public WC 1.0

Term properties.

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

No Hooks.

Return

Array.

Usage

$ProductAttributeSchema = new ProductAttributeSchema();
$ProductAttributeSchema->get_properties();

Code of ProductAttributeSchema::get_properties() WC 5.8.0

public function get_properties() {
	return [
		'id'           => array(
			'description' => __( 'Unique identifier for the resource.', 'woocommerce' ),
			'type'        => 'integer',
			'context'     => array( 'view', 'edit' ),
			'readonly'    => true,
		),
		'name'         => array(
			'description' => __( 'Attribute name.', 'woocommerce' ),
			'type'        => 'string',
			'context'     => array( 'view', 'edit' ),
			'readonly'    => true,
		),
		'taxonomy'     => array(
			'description' => __( 'The attribute taxonomy name.', 'woocommerce' ),
			'type'        => 'string',
			'context'     => array( 'view', 'edit' ),
			'readonly'    => true,
		),
		'type'         => array(
			'description' => __( 'Attribute type.', 'woocommerce' ),
			'type'        => 'string',
			'context'     => array( 'view', 'edit' ),
			'readonly'    => true,
		),
		'order'        => array(
			'description' => __( 'How terms in this attribute are sorted by default.', 'woocommerce' ),
			'type'        => 'string',
			'context'     => array( 'view', 'edit' ),
			'readonly'    => true,
		),
		'has_archives' => array(
			'description' => __( 'If this attribute has term archive pages.', 'woocommerce' ),
			'type'        => 'boolean',
			'context'     => array( 'view', 'edit' ),
			'readonly'    => true,
		),
		'count'        => array(
			'description' => __( 'Number of terms in the attribute taxonomy.', 'woocommerce' ),
			'type'        => 'integer',
			'context'     => array( 'view', 'edit' ),
			'readonly'    => true,
		),
	];
}