Automattic\WooCommerce\Internal\Admin\Orders\MetaBoxes
CustomMetaBox::output()
Renders the meta box to manage custom meta.
Метод класса: CustomMetaBox{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$CustomMetaBox = new CustomMetaBox(); $CustomMetaBox->output( $order_or_post );
Код CustomMetaBox::output() CustomMetaBox::output WC 9.2.3
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 ); }