woocommerce_order_item_needs_processing
Usage
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
- -
Where the hook is called
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() ) ) {