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
Метод класса: WC_Order_Item{}
Хуков нет.
Возвращает
Массив
.
Использование
$WC_Order_Item = new WC_Order_Item(); $WC_Order_Item->get_all_formatted_meta_data( $hideprefix, $include_all );
- $hideprefix(строка)
- Meta data prefix, .
По умолчанию: _) - $include_all(true|false)
- Include all meta data, this stop skip items with values already in the product name.
По умолчанию: true
Код WC_Order_Item::get_all_formatted_meta_data() WC Order Item::get all formatted meta data WC 8.7.0
public function get_all_formatted_meta_data( $hideprefix = '_', $include_all = true ) { return $this->get_formatted_meta_data( $hideprefix, $include_all ); }