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.


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php




Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.