WC_Order_Item_Shipping::get_instance_id()publicWC 1.0

Get instance ID.

Method of the class: WC_Order_Item_Shipping{}

No Hooks.

Return

String.

Usage

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

WC_Order_Item_Shipping::get_instance_id() code WC 9.4.2

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