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

apply_filters('woocommerce_payment_complete_reduce_order_stock') is found 1 times:

  • /includes/wc-stock-functions.php line 111
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
        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;
    }