WC_Order::has_cart_hash()publicWC 1.0

See if order matches cart_hash.

Method of the class: WC_Order{}

No Hooks.

Return

true|false.

Usage

$WC_Order = new WC_Order();
$WC_Order->has_cart_hash( $cart_hash );
$cart_hash(string)
Cart hash.
Default: ''

WC_Order::has_cart_hash() code WC 8.7.0

public function has_cart_hash( $cart_hash = '' ) {
	return hash_equals( $this->get_cart_hash(), $cart_hash ); // @codingStandardsIgnoreLine
}