Automattic\WooCommerce\Internal\Admin\Orders\MetaBoxes
CustomerHistory::output
Output the customer history template for the order.
Метод класса: CustomerHistory{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$CustomerHistory = new CustomerHistory(); $CustomerHistory->output( $order ): void;
- $order(WC_Order) (обязательный)
- The order object.
Код CustomerHistory::output() CustomerHistory::output WC 11.2.2
public function output( WC_Order $order ): void {
// No history when adding a new order.
if ( 'auto-draft' === $order->get_status() ) {
return;
}
$customer_history = $this->get_customer_history( $order );
wc_get_template( 'order/customer-history.php', $customer_history );
}