WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WC_Abstract_Order::__construct() public WC 1.0

Get the order if ID is passed, otherwise the order is new and empty. This class should NOT be instantiated, but the wc_get_order function or new WC_Order_Factory should be used. It is possible, but the aforementioned are preferred and are the only methods that will be maintained going forward.

{} Это метод класса: WC_Abstract_Order{}

Хуков нет.

Возвращает

Null. Ничего.

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

$WC_Abstract_Order = new WC_Abstract_Order();
$WC_Abstract_Order->__construct( $order );
$order(число/объект/WC_Order)
Order to read.
По умолчанию: 0

Код WC_Abstract_Order::__construct() WC 4.7.1

<?php
public function __construct( $order = 0 ) {
	parent::__construct( $order );

	if ( is_numeric( $order ) && $order > 0 ) {
		$this->set_id( $order );
	} elseif ( $order instanceof self ) {
		$this->set_id( $order->get_id() );
	} elseif ( ! empty( $order->ID ) ) {
		$this->set_id( $order->ID );
	} else {
		$this->set_object_read( true );
	}

	$this->data_store = WC_Data_Store::load( $this->data_store_name );

	if ( $this->get_id() > 0 ) {
		$this->data_store->read( $this );
	}
}