WordPress at Your Fingertips
function is not described

WC_Order_Item::is_type() public WC 1.0

Type checking.

{} It's a method of the class: WC_Order_Item{}

No Hooks.

Return

true|false.

Usage

$WC_Order_Item = new WC_Order_Item();
$WC_Order_Item->is_type( $type );
$type(string|array) (required)
Type.

Code of WC_Order_Item::is_type() WC 5.7.1

public function is_type( $type ) {
	return is_array( $type ) ? in_array( $this->get_type(), $type, true ) : $type === $this->get_type();
}