You have to use this filter:
add_filter( 'woocommerce_email_recipient_new_order', function( $recipient, $object ){
if($conditional){
$recipient="[email protected]";
}
return $recipient;
});
You have to use this filter:
add_filter( 'woocommerce_email_recipient_new_order', function( $recipient, $object ){
if($conditional){
$recipient="[email protected]";
}
return $recipient;
});