WC_Order::has_cart_hash()
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() WC Order::has cart hash code WC 9.6.1
public function has_cart_hash( $cart_hash = '' ) { return hash_equals( $this->get_cart_hash(), $cart_hash ); // @codingStandardsIgnoreLine }