Woocommerce hook after new order email (2 posts)

  1. TimoVeld
    Posted 2 years ago #

    I'm trying to have a PHP command executed after the "Admin new order" email is sent.
    I tried to just put the code at the end of the email, but then the email would no longer be send.

    So I was wondering. Is there a hook to use that executes a function directly after the "New order" email is send to the administrator?


  2. TimoVeld
    Posted 2 years ago #

    I've found a workaround. I wanted the order to automatically become complete after being send.

    So I added $order->update_status( 'completed' ); to the thankyou.php page.

    This does what I want it to do, except for one thing. When I change the order to complete manually like this, the order complete emails are not being send. Is there a command to send the order complete email manually?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic