WC_Product_Attribute::offsetExists()
OffsetExists.
Method of the class: WC_Product_Attribute{}
No Hooks.
Return
true|false
.
Usage
$WC_Product_Attribute = new WC_Product_Attribute(); $WC_Product_Attribute->offsetExists( $offset );
- $offset(string) (required)
- Offset.
WC_Product_Attribute::offsetExists() WC Product Attribute::offsetExists code WC 9.4.2
public function offsetExists( $offset ) { return in_array( $offset, array_merge( array( 'is_variation', 'is_visible', 'is_taxonomy', 'value' ), array_keys( $this->data ) ), true ); }