woocommerce_restore_order_stock

woocommerce_restore_order_stock

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

do_action('woocommerce_restore_order_stock') is found 1 times:

  • /includes/wc-stock-functions.php line 404
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
        if ( $changes ) {
            $order->add_order_note( __( 'Stock levels increased:', 'woocommerce' ) . ' ' . implode( ', ', $changes ) );
        }
     
        do_action( 'woocommerce_restore_order_stock', $order );
    }
     
    /**
     * See how much stock is being held in pending orders.
     *
     * @since 3.5.0