WordPress at a glance
function is not described

WC_Order::key_is_valid() public WC 1.0

Check if an order key is valid.

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

No Hooks.

Return

true/false.

Usage

$WC_Order = new WC_Order();
$WC_Order->key_is_valid( $key );
$key(string) (required)
Order key.

Code of WC_Order::key_is_valid() WC 5.0.0

<?php
public function key_is_valid( $key ) {
	return hash_equals( $this->get_order_key(), $key );
}