• So I have been trying to add WooCommerce product author email as a recipient in “new order” email. I used the code below but it does not trigger to author, what is missing?

    add_filter( ‘woocommerce_email_recipient_new_order’, ‘new_order_email_to_author’, 9999, 3 );

    function new_order_email_to_author( $email_recipient, $email_object, $email ) {
    $email_recipient .= get_the_author_meta( ‘user_email’, $product->post->post_author );
    return $email_recipient;
    }

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add author email to a New Order WooCommerce email’ is closed to new replies.