WordPress at a glance
function is not described

WC_Order::get_order_key() public WC 3.0.0

Get order key.

{} It's a 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.

Changelog

Since 3.0.0 Introduced.

Code of WC_Order::get_order_key() WC 5.0.0

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