WC_Order_Item_Data_Store_Interface::get_metadata()publicWC 1.0

Get term meta.

Method of the class: WC_Order_Item_Data_Store_Interface{}

No Hooks.

Return

Mixed.

Usage

$WC_Order_Item_Data_Store_Interface = new WC_Order_Item_Data_Store_Interface();
$WC_Order_Item_Data_Store_Interface->get_metadata( $item_id, $key, $single );
$item_id(int) (required)
Item ID.
$key(string) (required)
Meta key.
$single(true|false)
Store as single value and not serialised .
Default: true)

WC_Order_Item_Data_Store_Interface::get_metadata() code WC 9.4.2

public function get_metadata( $item_id, $key, $single = true );