WC_Order::get_order_key()publicWC 3.0.0

Get order key.

Method of the class: WC_Order{}

No Hooks.

Return

String.

Usage

$WC_Order = new WC_Order();
$WC_Order->get_order_key( $context );
$context(string)
What the value is for. Valid values are view and edit.
Default: 'view'

Changelog

Since 3.0.0 Introduced.

WC_Order::get_order_key() code WC 8.7.0

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