WC_Abstract_Legacy_Order::populate
Deprecated since 3.0. It is no longer supported and may 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.
Returns
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() WC Abstract Legacy Order::populate code WC 9.8.5
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 ); }