WordPress at Your Fingertips
function is not described

WC_Abstract_Legacy_Order::populate() public WC 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.

{} It's a method of the class: WC_Abstract_Legacy_Order{}

No Hooks.

Return

null. Nothing.

Usage

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

Changelog

Deprecated 3.0

Code of WC_Abstract_Legacy_Order::populate() WC 5.6.0

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 );
}