WC_Product_Attribute::get_taxonomy_objectpublicWC 1.0

Get taxonomy object.

Method of the class: WC_Product_Attribute{}

No Hooks.

Returns

Array|null.

Usage

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

WC_Product_Attribute::get_taxonomy_object() code WC 10.8.1

public function get_taxonomy_object() {
	global $wc_product_attributes;
	return $this->is_taxonomy() ? $wc_product_attributes[ $this->get_name() ] : null;
}