WC_Meta_Box_Order_Items::output
Output the metabox.
Метод класса: WC_Meta_Box_Order_Items{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$result = WC_Meta_Box_Order_Items::output( $post );
Код WC_Meta_Box_Order_Items::output() WC Meta Box Order Items::output WC 10.4.3
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';
}