WordPress at Your Fingertips
function is not described

WC_Product_Attribute::get_data() public WC 1.0

Returns all data for this object.

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

No Hooks.

Return

Array.

Usage

$WC_Product_Attribute = new WC_Product_Attribute();
$WC_Product_Attribute->get_data();

Code of WC_Product_Attribute::get_data() WC 5.6.0

public function get_data() {
	return array_merge(
		$this->data,
		array(
			'is_visible'   => $this->get_visible() ? 1 : 0,
			'is_variation' => $this->get_variation() ? 1 : 0,
			'is_taxonomy'  => $this->is_taxonomy() ? 1 : 0,
			'value'        => $this->is_taxonomy() ? '' : wc_implode_text_attributes( $this->get_options() ),
		)
	);
}