WC_Order_Item::get_all_formatted_meta_data()publicWC 1.0

Wrapper for get_formatted_meta_data that includes all metadata by default. See https://github.com/woocommerce/woocommerce/pull/30948

Method of the class: WC_Order_Item{}

No Hooks.

Return

Array.

Usage

$WC_Order_Item = new WC_Order_Item();
$WC_Order_Item->get_all_formatted_meta_data( $hideprefix, $include_all );
$hideprefix(string)
Meta data prefix, .
Default: _)
$include_all(true|false)
Include all meta data, this stop skip items with values already in the product name.
Default: true

WC_Order_Item::get_all_formatted_meta_data() code WC 8.7.0

public function get_all_formatted_meta_data( $hideprefix = '_', $include_all = true ) {
	return $this->get_formatted_meta_data( $hideprefix, $include_all );
}