woocommerce_product_needs_shipping filter-hookWC 1.0

Checks if a product needs shipping.

Usage

add_filter( 'woocommerce_product_needs_shipping', 'wp_kama_woocommerce_product_needs_shipping_filter', 10, 2 );

/**
 * Function for `woocommerce_product_needs_shipping` filter-hook.
 * 
 * @param  $condition 
 * @param  $that      
 *
 * @return 
 */
function wp_kama_woocommerce_product_needs_shipping_filter( $condition, $that ){

	// filter...
	return $condition;
}
$condition
-
$that
-

Where the hook is called

WC_Product::needs_shipping()
woocommerce_product_needs_shipping
woocommerce/includes/abstracts/abstract-wc-product.php 1684
return apply_filters( 'woocommerce_product_needs_shipping', ! $this->is_virtual(), $this );

Where the hook is used in WooCommerce

Usage not found.