Automattic\WooCommerce\Internal\Admin\Orders\MetaBoxes

CustomMetaBox::output()publicWC 1.0

Renders the meta box to manage custom meta.

Method of the class: CustomMetaBox{}

No Hooks.

Return

null. Nothing (null).

Usage

$CustomMetaBox = new CustomMetaBox();
$CustomMetaBox->output( $order_or_post );
$order_or_post(\WP_Post|\WC_Order) (required)
Post or order object that we are rendering for.

CustomMetaBox::output() code WC 8.7.0

public function output( $order_or_post ) {
	if ( is_a( $order_or_post, \WP_Post::class ) ) {
		$order = wc_get_order( $order_or_post );
	} else {
		$order = $order_or_post;
	}
	$this->render_custom_meta_form( $this->get_formatted_order_meta_data( $order ), $order );
}