1function so_39779506_filter_recipient( $recipient ) {
2
3 // Use this to completely replace the recipient.
4 $recipient = 'stack@gmail.com';
5 // $recipient = 'siraj2544@gmail.com';
6 return $recipient;
7
8 // Use this instead IF you wish to ADD this email to the default recipient.
9 //$recipient .= ', stack@example.com';
10}
11add_filter( 'woocommerce_email_recipient_new_order', 'so_39779506_filter_recipient', 10, 2 );
12