WooCommerce Code Reference

WC_Meta_Box_Order_Data

WC_Meta_Box_Order_Data Class.

Table of Contents

$billing_fields  : array<string|int, mixed>
Billing fields.
$shipping_fields  : array<string|int, mixed>
Shipping fields.
init_address_fields()  : mixed
Init billing and shipping fields we display + save. Maintained for backwards compat.
output()  : mixed
Output the metabox.
save()  : mixed
Save meta box data.
get_billing_fields()  : array<string|int, mixed>
Get billing fields for the meta box.
get_shipping_fields()  : array<string|int, mixed>
Get shipping fields for the meta box.

Properties

Methods

get_billing_fields()

Get billing fields for the meta box.

protected static get_billing_fields([WC_Order $order = false ][, string $context = 'edit' ]) : array<string|int, mixed>
Parameters
$order : WC_Order = false

Order object.

$context : string = 'edit'

Context of fields (view or edit).

Return values
array<string|int, mixed>

get_shipping_fields()

Get shipping fields for the meta box.

protected static get_shipping_fields([WC_Order $order = false ][, string $context = 'edit' ]) : array<string|int, mixed>
Parameters
$order : WC_Order = false

Order object.

$context : string = 'edit'

Context of fields (view or edit).

Return values
array<string|int, mixed>