WC_Order::get_order_key( string $context = 'view' )
Get order key.
Description Description
Parameters Parameters
- $context
-
(Optional) What the value is for. Valid values are view and edit.
Default value: 'view'
Return Return
(string)
Source Source
File: includes/class-wc-order.php
public function get_order_key( $context = 'view' ) {
return $this->get_prop( 'order_key', $context );
}
Changelog Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |