WC_Meta_Box_Order_Items::output()public staticWC 1.0

Output the metabox.

{} It's a method of the class: WC_Meta_Box_Order_Items{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Meta_Box_Order_Items::output( $post );
$post(WP_Post) (required)
-

Code of WC_Meta_Box_Order_Items::output() WC 6.7.0

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

	if ( ! is_int( $thepostid ) ) {
		$thepostid = $post->ID;
	}

	if ( ! is_object( $theorder ) ) {
		$theorder = wc_get_order( $thepostid );
	}

	$order = $theorder;
	$data  = get_post_meta( $post->ID );

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