Support » Plugin: WooCommerce » Woocommerce hook after new order email

  • Hi,
    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?

    http://wordpress.org/plugins/woocommerce/

Viewing 1 replies (of 1 total)
  • 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?

Viewing 1 replies (of 1 total)
  • The topic ‘Woocommerce hook after new order email’ is closed to new replies.