WC_Meta_Box_Order_Items::output()public staticWC 1.0

Output the metabox.

Метод класса: WC_Meta_Box_Order_Items{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$result = WC_Meta_Box_Order_Items::output( $post );
$post(WP_Post|WC_Order) (обязательный)
Post or order object.

Код WC_Meta_Box_Order_Items::output() 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';
}