woocommerce_payment_complete_reduce_order_stock

woocommerce_payment_complete_reduce_order_stock

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_payment_complete_reduce_order_stock') is found 1 times:

  • /includes/wc-stock-functions.php line 110
    		return;
    	}
    
    	$stock_reduced  = $order->get_data_store()->get_stock_reduced( $order_id );
    	$trigger_reduce = apply_filters( 'woocommerce_payment_complete_reduce_order_stock', ! $stock_reduced, $order_id );
    
    	// Only continue if we're reducing stock.
    	if ( ! $trigger_reduce ) {
    		return;
    	}