WC_Order_Item::is_type()publicWC 1.0

Type checking.

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.

WC_Order_Item::is_type() code WC 8.7.0

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