WordPress at Your Fingertips
function is not described

WC_Abstract_Order::get_parent_id() public WC 3.0.0

Get parent order ID.

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

No Hooks.

Return

Int.

Usage

$WC_Abstract_Order = new WC_Abstract_Order();
$WC_Abstract_Order->get_parent_id( $context );
$context(string)
View or edit context.
Default: 'view'

Changelog

Since 3.0.0 Introduced.

Code of WC_Abstract_Order::get_parent_id() WC 5.9.0

public function get_parent_id( $context = 'view' ) {
	return $this->get_prop( 'parent_id', $context );
}