WC_Product_Attribute::get_taxonomy_object()publicWC 1.0

Get taxonomy object.

Method of the class: WC_Product_Attribute{}

No Hooks.

Return

Array|null.

Usage

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

WC_Product_Attribute::get_taxonomy_object() code WC 9.4.2

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