WC_Abstract_Order::get_data() – Get all class data in array format.

You appear to be a bot. Output may be restricted

Description

Get all class data in array format.

Usage

$array = WC_Abstract_Order::get_data();

Parameters

Returns

array

Source

File name: woocommerce/includes/abstracts/abstract-wc-order.php
Lines:

1 to 16 of 16
  public function get_data() {
    return array_merge(
      array(
        'id' => $this->get_id(),
      ),
      $this->data,
      array(
        'meta_data'      => $this->get_meta_data(),
        'line_items'     => $this->get_items( 'line_item' ),
        'tax_lines'      => $this->get_items( 'tax' ),
        'shipping_lines' => $this->get_items( 'shipping' ),
        'fee_lines'      => $this->get_items( 'fee' ),
        'coupon_lines'   => $this->get_items( 'coupon' ),
      )
    );
  }
 

 View on GitHub View on Trac