Send new order emails to different address
-
I would like to pull store_email from the database and use it as the email to which new orders are sent to on line 48 of the second pastebin. store_email is stored as meta for each order (I followed lesson 3)
I am able to call that input by using:
<?php echo wp_kses_post( $post->store_email ); ?>
But I need it to work, like I said, on line 48 of the second pastebin file.
This file is the email that is sent out: https://pastebin.com/SFxWLKue
This file is what defines where the email is sent (line 48): https://pastebin.com/VCWEgdgq
This file is extended by the previous file: https://pastebin.com/pZRrtkeU(I know I should probably be creating a filter but this needs to be a quick job)
- The topic ‘Send new order emails to different address’ is closed to new replies.