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.8.7.0

apply_filters('woocommerce_payment_complete_reduce_order_stock') is found 1 times:

  • /includes/wc-stock-functions.php line 100
    		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;
    	}