WC_Meta_Box_Order_Data
in package
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
$billing_fields
Billing fields.
protected
static array<string|int, mixed>
$billing_fields
= array()
$shipping_fields
Shipping fields.
protected
static array<string|int, mixed>
$shipping_fields
= array()
Methods
init_address_fields()
Init billing and shipping fields we display + save. Maintained for backwards compat.
public
static init_address_fields() : mixed
Return values
mixed —output()
Output the metabox.
public
static output(WP_Post|WC_Order $post) : mixed
Parameters
- $post : WP_Post|WC_Order
-
Post or order object.
Return values
mixed —save()
Save meta box data.
public
static save(int $order_id) : mixed
Parameters
- $order_id : int
-
Order ID.
Tags
Return values
mixed —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).