woocommerce_get_product_from_item filter-hookWC 1.0

Usage

add_filter( 'woocommerce_get_product_from_item', 'wp_kama_woocommerce_get_product_from_item_filter', 10, 3 );

/**
 * Function for `woocommerce_get_product_from_item` filter-hook.
 * 
 * @param  $product 
 * @param  $item    
 * @param  $that    
 *
 * @return 
 */
function wp_kama_woocommerce_get_product_from_item_filter( $product, $item, $that ){

	// filter...
	return $product;
}
$product
-
$item
-
$that
-

Where the hook is called

WC_Abstract_Legacy_Order::get_product_from_item()
woocommerce_get_product_from_item
WC_Order_Item_Product::get_product()
woocommerce_get_product_from_item
woocommerce/includes/legacy/abstract-wc-legacy-order.php 326
return apply_filters( 'woocommerce_get_product_from_item', $product, $item, $this );
woocommerce/includes/class-wc-order-item-product.php 335
$product = apply_filters( 'woocommerce_get_product_from_item', $product, $this, $this->get_order() );

Where the hook is used in WooCommerce

Usage not found.