📅  最后修改于: 2022-03-11 14:54:24.880000             🧑  作者: Mango
function so_39779506_filter_recipient( $recipient ) {
// Use this to completely replace the recipient.
$recipient = 'stack@gmail.com';
// $recipient = 'siraj2544@gmail.com';
return $recipient;
// Use this instead IF you wish to ADD this email to the default recipient.
//$recipient .= ', stack@example.com';
}
add_filter( 'woocommerce_email_recipient_new_order', 'so_39779506_filter_recipient', 10, 2 );