WC_Product_Variation::get_length()
Returns the product length.
Метод класса: WC_Product_Variation{}
Хуки из метода
Возвращает
Строку
.
Использование
$WC_Product_Variation = new WC_Product_Variation(); $WC_Product_Variation->get_length( $context );
- $context(строка)
- What the value is for. Valid values are view and edit.
По умолчанию: 'view'
Код WC_Product_Variation::get_length() WC Product Variation::get length WC 9.8.1
public function get_length( $context = 'view' ) { $value = $this->get_prop( 'length', $context ); // Inherit value from parent. if ( 'view' === $context && empty( $value ) ) { $value = apply_filters( $this->get_hook_prefix() . 'length', $this->parent_data['length'], $this ); } return $value; }