WC_Cart::filter_items_needing_shipping
Filter items needing shipping callback.
Метод класса: WC_Cart{}
Хуков нет.
Возвращает
true|false.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->filter_items_needing_shipping( $item );
- $item(массив) (обязательный)
- Item to check for shipping.
Список изменений
| С версии 3.0.0 | Введена. |
Код WC_Cart::filter_items_needing_shipping() WC Cart::filter items needing shipping WC 10.9.4
protected function filter_items_needing_shipping( $item ) {
$product = $item['data'];
return $product && $product->needs_shipping();
}