WC_Abstract_Order::set_parent_id( int $value )
Set parent order ID.
Description Description
Parameters Parameters
- $value
-
(Required) Value to set.
Source Source
File: includes/abstracts/abstract-wc-order.php
public function set_parent_id( $value ) { if ( $value && ( $value === $this->get_id() || ! wc_get_order( $value ) ) ) { $this->error( 'order_invalid_parent_id', __( 'Invalid parent ID', 'woocommerce' ) ); } $this->set_prop( 'parent_id', absint( $value ) ); }
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |