woocommerce_order_item_needs_processing хук-фильтрWC 1.0

Использование

add_filter( 'woocommerce_order_item_needs_processing', 'wp_kama_woocommerce_order_item_needs_processing_filter', 10, 3 );

/**
 * Function for `woocommerce_order_item_needs_processing` filter-hook.
 * 
 * @param  $condition 
 * @param  $product   
 * @param  $id        
 *
 * @return 
 */
function wp_kama_woocommerce_order_item_needs_processing_filter( $condition, $product, $id ){

	// filter...
	return $condition;
}
$condition
-
$product
-
$id
-

Где вызывается хук

WC_Order::needs_processing()
woocommerce_order_item_needs_processing
woocommerce/includes/class-wc-order.php 1758
if ( apply_filters( 'woocommerce_order_item_needs_processing', ! $virtual_downloadable_item, $product, $this->get_id() ) ) {

Где используется хук в WooCommerce

Использование не найдено.