WC_Abstract_Legacy_Order::populate()publicWC 1.0

Deprecated from version 3.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Populates an order from the loaded post data.

Method of the class: WC_Abstract_Legacy_Order{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Abstract_Legacy_Order = new WC_Abstract_Legacy_Order();
$WC_Abstract_Legacy_Order->populate( $result );
$result(mixed) (required)
-

Changelog

Deprecated since 3.0

WC_Abstract_Legacy_Order::populate() code WC 9.3.1

public function populate( $result ) {
	wc_deprecated_function( 'WC_Order::populate', '3.0' );
	$this->set_id( $result->ID );
	$this->set_object_read( false );
	$this->data_store->read( $this );
}