WC_Order::has_cart_hash()
See if order matches cart_hash.
Метод класса: WC_Order{}
Хуков нет.
Возвращает
true|false
.
Использование
$WC_Order = new WC_Order(); $WC_Order->has_cart_hash( $cart_hash );
- $cart_hash(строка)
- Cart hash.
По умолчанию: ''
Код WC_Order::has_cart_hash() WC Order::has cart hash WC 9.6.0
public function has_cart_hash( $cart_hash = '' ) { return hash_equals( $this->get_cart_hash(), $cart_hash ); // @codingStandardsIgnoreLine }