WC_Order_Item::is_type( string|array $type )
Type checking.
Description Description
Parameters Parameters
- $type
-
(Required) Type.
Return Return
(boolean)
Source Source
File: includes/class-wc-order-item.php
public function is_type( $type ) { return is_array( $type ) ? in_array( $this->get_type(), $type, true ) : $type === $this->get_type(); }