WC_Product::get_attributes() – Returns product attributes.

You appear to be a bot. Output may be restricted

Description

Returns product attributes.

Usage

$array = WC_Product::get_attributes( $context );

Parameters

$context
( string ) optional default: view – What the value is for. Valid values are view and edit.

Returns

array

Source

File name: woocommerce/includes/abstracts/abstract-wc-product.php
Lines:

1 to 3 of 3
  public function get_attributes( $context = 'view' ) {
    return $this->get_prop( 'attributes', $context );
  }
 

 View on GitHub View on Trac