PHP Class WC_Meta_Box_Order_Data

显示文件 Open project: woocommerce/woocommerce Class Usage Examples

Protected Properties

Property Type Description
$billing_fields array Billing fields.
$shipping_fields array Shipping fields.

Public Methods

Method Description
init_address_fields ( ) Init billing and shipping fields we display + save.
output ( WP_Post $post ) Output the metabox.
save ( integer $order_id ) Save meta box data.

Method Details

init_address_fields() public static method

Init billing and shipping fields we display + save.
public static init_address_fields ( )

output() public static method

Output the metabox.
public static output ( WP_Post $post )
$post WP_Post

save() public static method

Save meta box data.
public static save ( integer $order_id )
$order_id integer Order ID.

Property Details

$billing_fields protected_oe static_oe property

Billing fields.
protected static array $billing_fields
return array

$shipping_fields protected_oe static_oe property

Shipping fields.
protected static array $shipping_fields
return array