WC_Order_Item_Data_Store::get_metadata()publicWC 3.0.0

Get term meta.

Method of the class: WC_Order_Item_Data_Store{}

No Hooks.

Return

Mixed.

Usage

$WC_Order_Item_Data_Store = new WC_Order_Item_Data_Store();
$WC_Order_Item_Data_Store->get_metadata( $item_id, $key, $single );
$item_id(int) (required)
Item ID.
$key(string) (required)
Meta key.
$single(true|false)
-
Default: true)

Changelog

Since 3.0.0 Introduced.

WC_Order_Item_Data_Store::get_metadata() code WC 9.4.2

public function get_metadata( $item_id, $key, $single = true ) {
	return get_metadata( 'order_item', $item_id, $key, $single );
}