PHP Deprecated: WC_Abstract_Legacy_Order::get_product_from_item
-
Hi I’m seing this error happen too much about the
PHP Deprecated: WC_Abstract_Legacy_Order::get_product_from_item est obsolète depuis la version 4.4.0?! Utilisez $item->get_product() à la place
so I searched for it and I found that is still used here
woocommerce/includes/legacy/abstract-wc-legacy-order.php: public function get_product_from_item( $item ) { woocommerce/includes/legacy/abstract-wc-legacy-order.php: wc_deprecated_function( 'WC_Abstract_Legacy_Order::get_product_from_item', '4.4.0', '$item->get_product()' ); woocommerce/includes/legacy/abstract-wc-legacy-order.php: return apply_filters( 'woocommerce_get_product_from_item', $product, $item, $this ); woocommerce/includes/class-wc-order-item-product.php: // Backwards compatible filter from WC_Order::get_product_from_item(). woocommerce/includes/class-wc-order-item-product.php: if ( has_filter( 'woocommerce_get_product_from_item' ) ) { woocommerce/includes/class-wc-order-item-product.php: $product = apply_filters( 'woocommerce_get_product_from_item', $product, $this, $this->get_order() ); woocommerce-services/classes/class-wc-connect-compatibility-wc26.php: return $order->get_product_from_item( $item ); woocommerce-services/classes/class-wc-connect-taxjar-integration.php: $product = $order->get_product_from_item( $item );
Can you take a look and if possible to provide an update thanks !
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘PHP Deprecated: WC_Abstract_Legacy_Order::get_product_from_item’ is closed to new replies.