WC_Order_Item_Product::offsetGet()
OffsetGet for ArrayAccess/Backwards compatibility.
Метод класса: WC_Order_Item_Product{}
Хуков нет.
Возвращает
Разное
.
Использование
$WC_Order_Item_Product = new WC_Order_Item_Product(); $WC_Order_Item_Product->offsetGet( $offset );
- $offset(строка) (обязательный)
- Offset.
Код WC_Order_Item_Product::offsetGet() WC Order Item Product::offsetGet WC 9.8.4
public function offsetGet( $offset ) { if ( 'line_subtotal' === $offset ) { $offset = 'subtotal'; } elseif ( 'line_subtotal_tax' === $offset ) { $offset = 'subtotal_tax'; } elseif ( 'line_total' === $offset ) { $offset = 'total'; } elseif ( 'line_tax' === $offset ) { $offset = 'total_tax'; } elseif ( 'line_tax_data' === $offset ) { $offset = 'taxes'; } elseif ( 'qty' === $offset ) { $offset = 'quantity'; } return parent::offsetGet( $offset ); }