Skip to content

Instantly share code, notes, and snippets.

Created September 16, 2017 11:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/b7aae4a04bcb58fddae752ac95c22f2d to your computer and use it in GitHub Desktop.
Save anonymous/b7aae4a04bcb58fddae752ac95c22f2d to your computer and use it in GitHub Desktop.
array (size=36)
'id' => int 50
'parent_id' => int 0
'status' => string 'processing' (length=10)
'currency' => string 'IRT' (length=3)
'version' => string '3.1.2' (length=5)
'prices_include_tax' => boolean false
'date_created' =>
object(WC_DateTime)[8439]
protected 'utc_offset' => int 0
public 'date' => string '2017-09-16 11:57:45.000000' (length=26)
public 'timezone_type' => int 3
public 'timezone' => string 'Atlantic/Azores' (length=15)
'date_modified' =>
object(WC_DateTime)[8475]
protected 'utc_offset' => int 0
public 'date' => string '2017-09-16 11:57:57.000000' (length=26)
public 'timezone_type' => int 3
public 'timezone' => string 'Atlantic/Azores' (length=15)
'discount_total' => string '0' (length=1)
'discount_tax' => string '0' (length=1)
'shipping_total' => string '0' (length=1)
'shipping_tax' => string '0' (length=1)
'cart_tax' => string '0' (length=1)
'total' => string '2000.00' (length=7)
'total_tax' => string '0' (length=1)
'customer_id' => int 2
'order_key' => string 'wc_order_59bd11b97ab94' (length=22)
'billing' =>
array (size=11)
'first_name' => string 'sam' (length=8)
'last_name' => string 'xxxx' (length=14)
'company' => string '' (length=0)
'address_1' => string 'sdafafasdawwqe' (length=24)
'address_2' => string '' (length=0)
'city' => string 'ESF' (length=12)
'state' => string 'ESF' (length=3)
'postcode' => string '96785654345' (length=11)
'country' => string 'IR' (length=2)
'email' => string 't@gmail.com' (length=11)
'phone' => string '' (length=0)
'shipping' =>
array (size=9)
'first_name' => string '' (length=0)
'last_name' => string '' (length=0)
'company' => string '' (length=0)
'address_1' => string '' (length=0)
'address_2' => string '' (length=0)
'city' => string '' (length=0)
'state' => string '' (length=0)
'postcode' => string '' (length=0)
'country' => string '' (length=0)
'payment_method' => string 'payir' (length=5)
'payment_method_title' => string 'درگاه پرداخت و کیف پول الکترونیک Pay.ir' (length=66)
'transaction_id' => string '131' (length=3)
'customer_ip_address' => string '::1' (length=3)
'customer_user_agent' => string 'mozilla/5.0 (windows nt 10.0; win64; x64) applewebkit/537.36 (khtml, like gecko) chrome/58.0.3029.81 safari/537.36' (length=114)
'created_via' => string 'checkout' (length=8)
'customer_note' => string '' (length=0)
'date_completed' => null
'date_paid' =>
object(WC_DateTime)[8479]
protected 'utc_offset' => int 0
public 'date' => string '2017-09-16 11:57:57.000000' (length=26)
public 'timezone_type' => int 3
public 'timezone' => string 'Atlantic/Azores' (length=15)
'cart_hash' => string 'afeffdea49c7ccc24be2ec6410a437d8' (length=32)
'number' => string '50' (length=2)
'meta_data' =>
array (size=1)
0 =>
object(stdClass)[8481]
public 'id' => int 1458
public 'key' => string '_billing_mobile' (length=15)
public 'value' => string '09140011840' (length=11)
'line_items' =>
array (size=1)
26 =>
object(WC_Order_Item_Product)[8434]
protected 'extra_data' =>
array (size=9)
...
protected 'data' =>
array (size=11)
...
protected 'cache_group' => string 'order-items' (length=11)
protected 'meta_type' => string 'order_item' (length=10)
protected 'object_type' => string 'order_item' (length=10)
protected 'id' => int 26
protected 'changes' =>
array (size=0)
...
protected 'object_read' => boolean true
protected 'default_data' =>
array (size=11)
...
protected 'data_store' =>
object(WC_Data_Store)[8480]
...
protected 'meta_data' =>
array (size=0)
...
'tax_lines' =>
array (size=0)
empty
'shipping_lines' =>
array (size=0)
empty
'fee_lines' =>
array (size=0)
empty
'coupon_lines' =>
array (size=0)
empty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment