• Resolved separovich

    (@separovich)


    I am improving my integration with the ERP, and we use webhook to register orders and products.
    But the hooks are being delivered in background around 00:20 am, I need to deliver it in real time, or every 5 minutos(something like this). I found some functions in “wc-webhook-functions.php” and “class-wc-webhook.php”, but i don’t know how to change it to be deliver immediately.
    Can Someone help me with it?


    Estou melhorando minha integra??o com o ERP, e uso as Webhooks para registrar Pedidos e Produtos.
    Mas as webhooks est?o sendo enviadas em segundo plano em torno das 00:20, mas preciso que seja enviado imediatamente, ou mais frequentemente, tipo de 5 em 5 minutos ou algo parecido. Achei algumas fun??es em “wc-webhook-functions.php” e “class-wc-webhook.php”, mas n?o sei como fazer para enviá-las imediatamente.
    Alguém consegue me ajudar?

    • This topic was modified 6 years, 7 months ago by separovich.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter separovich

    (@separovich)

    I solved it adding this filter:

    add_filter('woocommerce_webhook_deliver_async','do_not_async_webhook');
    function do_not_async_webhook(){
            return False;}

    It was very simple ??

Viewing 1 replies (of 1 total)
  • The topic ‘Modify when the webhook is delivered’ is closed to new replies.