WC_Order_Item_Data_Store_Interface::get_metadata()
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() WC Order Item Data Store Interface::get metadata code WC 9.4.2
public function get_metadata( $item_id, $key, $single = true );