Automattic\WooCommerce\Internal\Admin\Orders\MetaBoxes

CustomMetaBox::output()publicWC 1.0

Renders the meta box to manage custom meta.

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

Хуков нет.

Возвращает

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

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

$CustomMetaBox = new CustomMetaBox();
$CustomMetaBox->output( $order_or_post );
$order_or_post(\WP_Post|\WC_Order) (обязательный)
Post or order object that we are rendering for.

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