WC_Abstract_Order::get_parent_id()publicWC 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 6.9.4

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