WC_Product_Download::offsetExists()publicWC 1.0ReturnTypeWillChange

OffsetExists.

Method of the class: WC_Product_Download{}

No Hooks.

Return

true|false.

Usage

$WC_Product_Download = new WC_Product_Download();
$WC_Product_Download->offsetExists( $offset );
$offset(string) (required)
Offset.

WC_Product_Download::offsetExists() code WC 8.6.1

public function offsetExists( $offset ) {
	return in_array( $offset, array_keys( $this->data ), true );
}