WC_Order::has_cart_hash
See if order matches cart_hash.
Method of the class: WC_Order{}
No Hooks.
Returns
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 10.5.0
public function has_cart_hash( $cart_hash = '' ) {
return hash_equals( $this->get_cart_hash(), $cart_hash ); // @codingStandardsIgnoreLine
}