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

{} It's a 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: _).
Default: '_'
$include_all(true|false)
Include all meta data, this stop skip items with values already in the product name.
Default: true

Code of WC_Order_Item::get_all_formatted_meta_data() WC 6.5.1

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