订单完成时添加电子邮件收件人
function woo_extra_email_recipient($recipient, $object) { $recipient = $recipient . ', your@email.com'; return $recipient; } add_filter( 'woocommerce_email_recipient_customer_completed_order', 'woo_extra_email_recipient', 10, 2);
在哪里添加此代码?
将PHP代码放在主题或子主题functions.php文件的底部。