WC_Product_Attribute::get_extra_datapublicWC 10.6.0

Get extra data by key.

Method of the class: WC_Product_Attribute{}

No Hooks.

Returns

Mixed.

Usage

$WC_Product_Attribute = new WC_Product_Attribute();
$WC_Product_Attribute->get_extra_data( $key );
$key(string) (required)
Extra data key.

Changelog

Since 10.6.0 Introduced.

WC_Product_Attribute::get_extra_data() code WC 10.8.1

public function get_extra_data( string $key ) {
	return $this->extra_data[ $key ] ?? null;
}