WC_Order_Item::is_type( string|array $type )

Type checking.


Description Description


Parameters Parameters

$type

(Required) Type.


Top ↑

Return Return

(boolean)


Top ↑

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();
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.