WC_Order_Item::get_all_formatted_meta_data()
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() WC Order Item::get all formatted meta data code WC 9.3.1
public function get_all_formatted_meta_data( $hideprefix = '_', $include_all = true ) { return $this->get_formatted_meta_data( $hideprefix, $include_all ); }