parent
50dbef7e8e
commit
e44450a40c
|
@ -426,16 +426,6 @@ class WC_Product_Variation extends WC_Product_Simple {
|
|||
$this->set_prop( 'attributes', $attributes );
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns array of attribute name value pairs. Keys are prefixed with attribute_, as stored.
|
||||
*
|
||||
* @param string $context
|
||||
* @return array
|
||||
*/
|
||||
public function get_attributes( $context = 'view' ) {
|
||||
return $this->get_prop( 'attributes', $context );
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether or not the product has any visible attributes.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue