WC_Product_Attribute::offsetSet()
[\ReturnTypeWillChange]{} Это метод класса: WC_Product_Attribute{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$WC_Product_Attribute = new WC_Product_Attribute(); $WC_Product_Attribute->offsetSet( $offset, $value );
- $offset (обязательный)
- -
- $value (обязательный)
- -
Код WC_Product_Attribute::offsetSet() WC Product Attribute::offsetSet WC 6.4.1
public function offsetSet( $offset, $value ) { switch ( $offset ) { case 'is_variation': $this->set_variation( $value ); break; case 'is_visible': $this->set_visible( $value ); break; case 'value': $this->set_options( $value ); break; default: if ( is_callable( array( $this, "set_$offset" ) ) ) { $this->{"set_$offset"}( $value ); } break; } }