WC_Order::key_is_valid( string $key )

Check if an order key is valid.


Description Description


Parameters Parameters

$key

(Required) Order key.


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/class-wc-order.php

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


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.