WordPress at a glance
function is not described

WC_Order::set_order_key() public WC 1.0

Set order key.

{} It's a method of the class: WC_Order{}

No Hooks.

Return

Null. Nothing.

Usage

$WC_Order = new WC_Order();
$WC_Order->set_order_key( $value );
$value(string) (required)
Max length 22 chars.

Code of WC_Order::set_order_key() WC 5.0.0

<?php
public function set_order_key( $value ) {
	$this->set_prop( 'order_key', substr( $value, 0, 22 ) );
}