WC_Product_Attribute::offsetExists( string $offset )

OffsetExists.


Description Description


Parameters Parameters

$offset

(Required) Offset.


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/class-wc-product-attribute.php

	public function offsetExists( $offset ) {
		return in_array( $offset, array_merge( array( 'is_variation', 'is_visible', 'is_taxonomy', 'value' ), array_keys( $this->data ) ), true );
	}

Top ↑

User Contributed Notes User Contributed Notes

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