WC_Abstract_Order::get_parent_id( string $context = 'view' )
Get parent order ID.
Description Description
Parameters Parameters
- $context
-
(Optional) View or edit context.
Default value: 'view'
Return Return
(integer)
Source Source
File: includes/abstracts/abstract-wc-order.php
public function get_parent_id( $context = 'view' ) { return $this->get_prop( 'parent_id', $context ); }
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |