WC_Order::has_cart_hash │ public │ WC 1.0

See if order matches cart_hash.

Метод класса: WC_Order{}

Хуков нет.

Возвращает

bool.

Использование

$WC_Order = new WC_Order();
$WC_Order->has_cart_hash( $cart_hash );
$cart_hash(строка)
Cart hash.
По умолчанию: ''

Код WC_Order::has_cart_hash() WC 11.2.2

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