WC_Meta_Box_Order_Items::output()public staticWC 1.0

Output the metabox.

Method of the class: WC_Meta_Box_Order_Items{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Meta_Box_Order_Items::output( $post );
$post(WP_Post|WC_Order) (required)
Post or order object.

WC_Meta_Box_Order_Items::output() code WC 8.7.0

public static function output( $post ) {
	global $post, $thepostid, $theorder;

	OrderUtil::init_theorder_object( $post );
	if ( ! is_int( $thepostid ) && ( $post instanceof WP_Post ) ) {
		$thepostid = $post->ID;
	}

	$order = $theorder;
	$data  = ( $post instanceof WP_Post ) ? get_post_meta( $post->ID ) : array();

	include __DIR__ . '/views/html-order-items.php';
}