WordPress at Your Fingertips
function is not described

WC_Order_Item_Data_Store::get_metadata() public WC 3.0.0

Get term meta.

{} It's a 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).
Default: true

Changelog

Since 3.0.0 Introduced.

Code of WC_Order_Item_Data_Store::get_metadata() WC 5.7.1

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