Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
WC_REST_Orders_V2_Controller::merge_meta_item_with_formatted_meta_display_attributes( WC_Meta_Data $meta_item, array $formatted_meta_data )
Merge the $formatted_meta_data
display_key
and display_value
attribute values into the corresponding {@link WC_Meta_Data}. Returns the merged array.
Description Description
Parameters Parameters
- $meta_item
-
(Required) An object from WC_Order_Item::get_meta_data().
- $formatted_meta_data
-
(Required) An object result from WC_Order_Item::get_formatted_meta_data. The keys are the IDs of WC_Meta_Data.
Return Return
(array)
Source Source
File: includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php